[llvm] [ARM] Don't block tail-predication from unrelated VPT blocks. (PR #94239)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 09:16:00 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 910098e40572f9fe6bfde161eafd1b390a356043 03c6299d873de36941d518ea1a076eda24a4c3eb -- llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp b/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
index d7c89ca6c6..6e0042402d 100644
--- a/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
+++ b/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
@@ -281,9 +281,9 @@ namespace {
       if (VPT->getOpcode() == ARM::MVE_VPST)
         return false;
 
-      // If the VPT block does not define something that is an "output", then the
-      // tail-predicated version will just perform a subset of the original vpt
-      // block, where the last lanes should not be used.
+      // If the VPT block does not define something that is an "output", then
+      // the tail-predicated version will just perform a subset of the original
+      // vpt block, where the last lanes should not be used.
       if (isVPTOpcode(VPT->getOpcode()) &&
           all_of(Block.getInsts(), [](const MachineInstr *MI) {
             return !MI->mayStore() && !isHorizontalReduction(*MI) &&

``````````

</details>


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


More information about the llvm-commits mailing list