llvm-project
528b13df - [SCEVExp] Add helper to clean up dead instructions after expansion. (#157308)

Commit
26 days ago
[SCEVExp] Add helper to clean up dead instructions after expansion. (#157308) 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
Author
Parents
Loading