Skip to content

Commit f2b9c4a

Browse files
committed
Compare VNInfo pointers directly. This seems to be fine and is done elsewhere in RISCVInsertVSETVLI and in LiveIntervals.cpp
1 parent ae29ef9 commit f2b9c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ bool RISCVInsertVSETVLI::canMutatePriorConfig(
16251625
if (AVL.isReg() && AVL.getReg() != RISCV::X0) {
16261626
VNInfo *VNI = getVNInfoFromReg(AVL.getReg(), MI, LIS);
16271627
VNInfo *PrevVNI = getVNInfoFromReg(AVL.getReg(), PrevMI, LIS);
1628-
if (!VNI || !PrevVNI || VNI->id != PrevVNI->id)
1628+
if (!VNI || !PrevVNI || VNI != PrevVNI)
16291629
return false;
16301630
}
16311631
}

0 commit comments

Comments
 (0)