[llvm] [ARM][MVE] Invalid tail predication in LowOverheadLoop pass (PR #163217)
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 23:47:12 PDT 2025
================
@@ -805,6 +805,16 @@ int llvm::findFirstVPTPredOperandIdx(const MachineInstr &MI) {
return -1;
}
+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)
+ return i + 3;
----------------
sparker-arm wrote:
Okay, cheers, this seems good enough to me.
https://github.com/llvm/llvm-project/pull/163217
More information about the llvm-commits
mailing list