================
@@ -7135,6 +7135,10 @@ PreservedAnalyses LoopStrengthReducePass::run(Loop &L,
LoopAnalysisManager &AM,
if (!ReduceLoopStrength(&L, AM.getResult<IVUsersAnalysis>(L, AR), AR.SE,
AR.DT, AR.LI, AR.TTI, AR.AC, AR.TLI, AR.MSSA))
return PreservedAnalyses::all();
+
+ // TODO: Remove this once the LSR handles LCSSA preservation completely.
+ if (auto *OuterLoop = L.getOutermostLoop())
+ formLCSSARecursively(*OuterLoop, AR.DT, &AR.LI, &AR.SE);
----------------
vikramRH wrote:
Unfortunately yes, ideal way would be to handle it as part of the pass but that
currently does not seem to be straight forward to me now.
https://github.com/llvm/llvm-project/pull/176692
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits