[llvm] [indvars] Missing variables at Og: (PR #69920)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 06:20:38 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 7c00a5be5cdeb34711a546054ba0aa89c26d14eb 88f7d8cc0e3135a58d66698560aa05a2d85ae0df -- llvm/include/llvm/Transforms/Utils/LoopUtils.h llvm/lib/Transforms/Utils/LoopUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 45408ff804..420c99775a 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<PHINode>(Inst) || isa<LandingPadInst>(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);
}
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/69920
More information about the llvm-commits
mailing list