[llvm] [GlobalISel] Look between instructions to be matched (PR #101675)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 06:26:50 PDT 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 6f62757e779492b288a98c7c2e27eba95a551e3b f92721bc2b2ce8900027c9848a1ae2956d282697 --extensions cpp -- llvm/lib/CodeGen/GlobalISel/GIMatchTableExecutor.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/GIMatchTableExecutor.cpp b/llvm/lib/CodeGen/GlobalISel/GIMatchTableExecutor.cpp
index 16ca16e199..1a887ab579 100644
--- a/llvm/lib/CodeGen/GlobalISel/GIMatchTableExecutor.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/GIMatchTableExecutor.cpp
@@ -86,7 +86,8 @@ bool GIMatchTableExecutor::isObviouslySafeToFold(MachineInstr &MI,
// Ensure instructions between MI and IntoMI are not affected when combined
unsigned Iter = 0;
const unsigned MaxIter = 20;
- for (auto &CurrMI : instructionsWithoutDebug(MI.getIterator(), IntoMI.getIterator())) {
+ for (auto &CurrMI :
+ instructionsWithoutDebug(MI.getIterator(), IntoMI.getIterator())) {
if (CurrMI.isLoadFoldBarrier())
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/101675
More information about the llvm-commits
mailing list