From 9941c3a2a85c939929274e7ca70c3a88b5aaf6c8 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Enciso Date: Tue, 9 Jan 2024 14:44:10 +0000 Subject: [PATCH] [indvars] Missing variables at Og: https://bugs.llvm.org/show_bug.cgi?id=51735 https://github.com/llvm/llvm-project/issues/51077 Fix clang-format found issues in updated patch. --- llvm/lib/Transforms/Utils/LoopUtils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index b0426bf216d8ce..6057cda2e679e0 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -1594,13 +1594,15 @@ int llvm::rewriteLoopExitValues(Loop *L, LoopInfo *LI, TargetLibraryInfo *TLI, Instruction *InsertPt = (isa(Inst) || isa(Inst)) ? &*Inst->getParent()->getFirstInsertionPt() : Inst; - RewritePhiSet.emplace_back(PN, i, ExitValue, InsertPt, HighCost, ExitBB); + RewritePhiSet.emplace_back(PN, i, ExitValue, InsertPt, HighCost, + ExitBB); // Add debug values if the PN is a induction variable. PHINode *IndVar = L->getInductionVariable(*SE); if (PN->getIncomingValue(i) == IndVar) if (BasicBlock *Successor = ExitBB->getSingleSuccessor()) - addDebugValuesToIncomingValue(Successor, PN->getIncomingValue(i), PN); + addDebugValuesToIncomingValue(Successor, PN->getIncomingValue(i), + PN); } } }