[llvm] [VPlan] Only skip expansion for SCEVUnknown if it isn't an instruction. (PR #125235)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 07:20:41 PST 2025
================
@@ -3335,7 +3335,7 @@ void VPExpandSCEVRecipe::execute(VPTransformState &State) {
}
const DataLayout &DL = State.CFG.PrevBB->getDataLayout();
- SCEVExpander Exp(SE, DL, "induction");
+ SCEVExpander Exp(SE, DL, "induction", true);
----------------
nikic wrote:
```suggestion
SCEVExpander Exp(SE, DL, "induction", /*PreserveLCSSA=*/true);
```
https://github.com/llvm/llvm-project/pull/125235
More information about the llvm-commits
mailing list