[llvm] [ARM][MVE] Invalid tail predication in LowOverheadLoop pass (PR #163217)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 14 07:41:54 PDT 2025


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 origin/main HEAD --extensions h,cpp -- llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp llvm/lib/Target/ARM/Thumb2InstrInfo.cpp llvm/lib/Target/ARM/Thumb2InstrInfo.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
index 361cdece7..cb7c6a466 100644
--- a/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
@@ -809,8 +809,8 @@ int llvm::findVPTInactiveOperandIdx(const MachineInstr &MI) {
   const MCInstrDesc &MCID = MI.getDesc();
 
   for (unsigned i = 0, e = MCID.getNumOperands(); i != e; ++i)
-    if (MCID.operands()[i].OperandType == ARM::OPERAND_VPRED_R)  {
-      assert(MCID.getOperandConstraint(i+3, MCOI::TIED_TO) != -1 &&
+    if (MCID.operands()[i].OperandType == ARM::OPERAND_VPRED_R) {
+      assert(MCID.getOperandConstraint(i + 3, MCOI::TIED_TO) != -1 &&
              "Operand #3 of VPRED_R is the one tied to the output register");
       return i + 3;
     }

``````````

</details>


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


More information about the llvm-commits mailing list