Skip to content

Commit 3452e80

Browse files
committed
replace getSize with element count's min value to accomodate scalable vectors
1 parent fbe38ee commit 3452e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineOperand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
12401240
<< "unknown-address";
12411241
}
12421242
MachineOperand::printOperandOffset(OS, getOffset());
1243-
if (getSize() > 0 && getAlign() != getSize())
1243+
if (getType().getElementCount().getKnownMinValue() > 0 && getAlign() != getType().getElementCount().getKnownMinValue())
12441244
OS << ", align " << getAlign().value();
12451245
if (getAlign() != getBaseAlign())
12461246
OS << ", basealign " << getBaseAlign().value();

0 commit comments

Comments
 (0)