Skip to content

Commit a6eb7d6

Browse files
committed
[ARC] Remove unneeded isStackSlot
1 parent 8b58cb8 commit a6eb7d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARC/ARCOptAddrMode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ MachineInstr *ARCOptAddrMode::tryToCombine(MachineInstr &Ldst) {
216216
}
217217

218218
Register B = Base.getReg();
219-
if (B.isStackSlot() || !B.isVirtual()) {
219+
if (!Register::isVirtualRegister(B)) {
220220
LLVM_DEBUG(dbgs() << "[ABAW] Base is not VReg\n");
221221
return nullptr;
222222
}

0 commit comments

Comments
 (0)