From 0270560a07d37ae51cde9bc6e7e8b7e5d7832b69 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 45408ff804e007..420c99775a6e67 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -1523,13 +1523,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); } } }