[flang] [clang-tools-extra] [llvm] [clang] [compiler-rt] [indvars] Missing variables at Og: (PR #69920)

Carlos Alberto Enciso via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 06:14:30 PST 2024


================
@@ -1482,6 +1513,21 @@ int llvm::rewriteLoopExitValues(Loop *L, LoopInfo *LI, TargetLibraryInfo *TLI,
           (isa<PHINode>(Inst) || isa<LandingPadInst>(Inst)) ?
           &*Inst->getParent()->getFirstInsertionPt() : Inst;
         RewritePhiSet.emplace_back(PN, i, ExitValue, InsertPt, HighCost);
+
+        // Add debug values if the PN is a induction variable.
----------------
CarlosAlbertoEnciso wrote:

That code creates a debug value in the exit block if any of the incoming values for the PHI Node being replaced is the induction variable. Reworked in new patch.

https://github.com/llvm/llvm-project/pull/69920


More information about the cfe-commits mailing list