Non trivial loop unswitch can keep the dead condition instruction.
CL adds trivial dead code elimination for unused condition.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think in general the pass is not trying to do DCE too, but here it looks cheap to clean the dead code left by the conditional.
Please have MSSA updated though.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
1156 | RecursivelyDeleteTriviallyDeadInstructions(ClonedConditionToErase, nullptr, MSSAU); |
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
1156 | Thanks, will do before landing. |
RecursivelyDeleteTriviallyDeadInstructions(ClonedConditionToErase, nullptr, MSSAU);