SuccessChanges

Summary

  1. [InstCombine] collectBitParts - add fshl/fshr handling (details)
  2. [IRSim] Adding basic implementation of llvm-sim. (details)
  3. [InstCombine] Fix test name to match type. NFCI. (details)
  4. [InstCombine] matchRotate - support (uniform) constant rotation amounts (PR46895) (details)
  5. Fix copy+paste typo in doxygen parameter name to fix Wdocumentation. NFCI. (details)
  6. Revert "[IRSim] Adding basic implementation of llvm-sim." (details)
  7. [lsan] Add interceptor for pthread_detach. (details)
Commit 2a0ca17f66f7776ade251fd40dc9a4f981b2a673 by llvm-dev
[InstCombine] collectBitParts - add fshl/fshr handling

Pulled from D87452, this is a fixed version of the collectBitParts fshl/fshr handling which as @nikic noticed wasn't checking for different providers or had correct bit ordering (which was hid by only testing shift amounts of bitwidth/2).

Differential Revision: https://reviews.llvm.org/D88292
The file was modifiedllvm/test/Transforms/InstCombine/bswap.ll
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
Commit 15645d044bcfe2a0f63156048b302f997a717688 by andrew.litteken
[IRSim] Adding basic implementation of llvm-sim.

This is a similarity visualization tool that accepts a Module and
passes it to the IRSimilarityIdentifier.  The resulting SimilarityGroups
are output in a JSON file.

Tests are found in test/tools/llvm-sim and check for the file not found,
a bad module, and that the JSON is created correctly.

Reviewers: paquette, jroelofs

Differential Revision: https://reviews.llvm.org/D86974
The file was addedllvm/test/tools/llvm-sim/single-sim-file.test
The file was addedllvm/tools/llvm-sim/LLVMBuild.txt
The file was modifiedllvm/tools/LLVMBuild.txt
The file was addedllvm/test/tools/llvm-sim/single-sim.test
The file was addedllvm/tools/llvm-sim/llvm-sim.cpp
The file was addedllvm/test/tools/llvm-sim/fail-cases.test
The file was addedllvm/tools/llvm-sim/CMakeLists.txt
The file was addedllvm/test/tools/llvm-sim/Inputs/sim1.ll
Commit 994ef4e7bb22ccdc871ee876207e529ed118f114 by llvm-dev
[InstCombine] Fix test name to match type. NFCI.

We're testing a <2 x i36> not <2 x i16>
The file was modifiedllvm/test/Transforms/InstCombine/rotate.ll
Commit 9ff9c1d8ee1d412f088b0fc9ea1b5c2cffe95c88 by llvm-dev
[InstCombine] matchRotate - support (uniform) constant rotation amounts (PR46895)

This patch adds handling of rotation patterns with constant shift amounts - the next bit will be how we want to support non-uniform constant vectors.

Differential Revision: https://reviews.llvm.org/D87452
The file was modifiedllvm/test/Transforms/InstCombine/bswap.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
The file was modifiedllvm/test/Transforms/InstCombine/or-concat.ll
The file was modifiedllvm/test/Transforms/InstCombine/rotate.ll
The file was modifiedllvm/test/Transforms/InstCombine/fsh.ll
Commit 7fa464f33d723051850f1d5785a93d5d2d6cd58f by llvm-dev
Fix copy+paste typo in doxygen parameter name to fix Wdocumentation. NFCI.
The file was modifiedllvm/include/llvm/Analysis/IRSimilarityIdentifier.h
Commit 69c6f6be07e4db11f2aca91ad7bbc0db1e9044d6 by andrew.litteken
Revert "[IRSim] Adding basic implementation of llvm-sim."

This reverts commit 15645d044bcfe2a0f63156048b302f997a717688.
The file was removedllvm/test/tools/llvm-sim/fail-cases.test
The file was removedllvm/test/tools/llvm-sim/single-sim.test
The file was removedllvm/tools/llvm-sim/CMakeLists.txt
The file was removedllvm/test/tools/llvm-sim/Inputs/sim1.ll
The file was removedllvm/test/tools/llvm-sim/single-sim-file.test
The file was removedllvm/tools/llvm-sim/LLVMBuild.txt
The file was modifiedllvm/tools/LLVMBuild.txt
The file was removedllvm/tools/llvm-sim/llvm-sim.cpp
Commit a83eb048cb9a75da7a07a9d5318bbdbf54885c87 by mvanotti
[lsan] Add interceptor for pthread_detach.

This commit adds an interceptor for the pthread_detach function,
calling into ThreadRegistry::DetachThread, allowing for thread contexts
to be reused.

Without this change, programs may fail when they create more than 8K
threads.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=47389

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D88184
The file was modifiedcompiler-rt/lib/lsan/lsan_thread.cpp
The file was modifiedcompiler-rt/lib/lsan/lsan_thread.h
The file was modifiedcompiler-rt/lib/lsan/lsan_interceptors.cpp
The file was addedcompiler-rt/test/lsan/TestCases/many_threads_detach.cpp