Skip to content

Commit 4a97ce5

Browse files
committed
[X86] X86FixupVectorConstantsPass - pull out getPrimitiveSizeInBits call. NFC.
1 parent 4bda953 commit 4a97ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86FixupVectorConstants.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ bool X86FixupVectorConstantsPass::processInstruction(MachineFunction &MF,
360360
assert(MI.getNumOperands() >= (OperandNo + X86::AddrNumOperands) &&
361361
"Unexpected number of operands!");
362362
if (auto *C = X86::getConstantFromPool(MI, OperandNo)) {
363-
RegBitWidth =
364-
RegBitWidth ? RegBitWidth : C->getType()->getPrimitiveSizeInBits();
363+
unsigned CstBitWidth = C->getType()->getPrimitiveSizeInBits();
364+
RegBitWidth = RegBitWidth ? RegBitWidth : CstBitWidth;
365365
for (const FixupEntry &Fixup : Fixups) {
366366
if (Fixup.Op) {
367367
// Construct a suitable constant and adjust the MI to use the new

0 commit comments

Comments
 (0)