[llvm] [SCEV] Try to re-use existing LCSSA phis when expanding SCEVAddRecExpr. (PR #147214)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 06:42:26 PDT 2025
================
@@ -1223,6 +1223,24 @@ Value *SCEVExpander::expandAddRecExprLiterally(const SCEVAddRecExpr *S) {
return Result;
}
+Value *SCEVExpander::tryToReuseLCSSAPhi(const SCEVAddRecExpr *S) {
+ const Loop *L = S->getLoop();
+ BasicBlock *EB = L->getExitBlock();
----------------
nikic wrote:
Limitation to single-exit loops is unfortunate.
https://github.com/llvm/llvm-project/pull/147214
More information about the llvm-commits
mailing list