We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d4804 commit 1d4265dCopy full SHA for 1d4265d
llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
@@ -758,7 +758,7 @@ bool RISCVVectorPeephole::foldVMergeToMask(MachineInstr &MI) const {
758
if (OtherIdx == -1)
759
return false;
760
unsigned OpIdx1 = OtherIdx;
761
- unsigned OpIdx2 = TargetInstrInfo::CommuteAnyOperandIndex;
+ unsigned OpIdx2 = True.getNumExplicitDefs();
762
if (!TII->findCommutedOpIndices(True, OpIdx1, OpIdx2))
763
764
NeedsCommute = {OpIdx1, OpIdx2};
0 commit comments