[llvm] [indvars] Missing variables at Og: (PR #69920)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 04:48:28 PST 2024
================
@@ -1540,11 +1590,22 @@ int llvm::rewriteLoopExitValues(Loop *L, LoopInfo *LI, TargetLibraryInfo *TLI,
// Replace PN with ExitVal if that is legal and does not break LCSSA.
if (PN->getNumIncomingValues() == 1 &&
LI->replacementPreservesLCSSAForm(PN, ExitVal)) {
+ addDebugValuesToLoopVariable(Phi.ExitBlock, ExitVal, PN);
PN->replaceAllUsesWith(ExitVal);
PN->eraseFromParent();
}
}
+ // If there are no PHIs to be rewritten then there are no loop live-out
+ // values, try to rewrite variables corresponding to the induction variable
----------------
CarlosAlbertoEnciso wrote:
Changed.
https://github.com/llvm/llvm-project/pull/69920
More information about the llvm-commits
mailing list