diff options
author | Florian Hahn <flo@fhahn.com> | 2025-09-09 09:47:41 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-09-09 09:47:41 +0100 |
commit | 9b1b93766dfa34ee94859d91a5fcfef853b95265 (patch) | |
tree | b89ec9b459b6970d3ee3d9cdf6cafc738b4c79cf /clang/lib/CodeGen/CGClass.cpp | |
parent | 157e88637475b831e175b75f30cab9dd63eaeae1 (diff) | |
download | llvm-9b1b93766dfa34ee94859d91a5fcfef853b95265.zip llvm-9b1b93766dfa34ee94859d91a5fcfef853b95265.tar.gz llvm-9b1b93766dfa34ee94859d91a5fcfef853b95265.tar.bz2 |
Reapply "[SCEVExp] Add helper to clean up dead instructions after expansion. (#157308)"
This reverts commit eeb43806eb1b40e690aeeba496ee974172202df9.
Recommit with with a fix for MSan failure (
https://lab.llvm.org/buildbot/#/builders/169/builds/14799), by adding a
set to track deleted values. Using the InsertedInstructions set is not
sufficient, as it use asserting value handles as keys, which may
dereference the value at construction.
Original message:
Add new helper to erase dead instructions inserted during SCEV expansion
but not being used due to InstSimplifyFolder simplifications.
Together with https://github.com/llvm/llvm-project/pull/157307 this also
allows removing some specialized folds, e.g.
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp#L2205
PR: https://github.com/llvm/llvm-project/pull/157308
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions