Skip to content

Commit 769d5c2

Browse files
authored
[AArch64] Expand MI->getOperand(1).getImm() with 0 literal (llvm#154598)
`MI->getOperand(1).getImm()` has already been verified to be 0 entering the block.
1 parent bddac5e commit 769d5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2862,7 +2862,7 @@ void AArch64AsmPrinter::emitInstruction(const MachineInstr *MI) {
28622862
MCInst TmpInst;
28632863
TmpInst.setOpcode(AArch64::MOVIv16b_ns);
28642864
TmpInst.addOperand(MCOperand::createReg(MI->getOperand(0).getReg()));
2865-
TmpInst.addOperand(MCOperand::createImm(MI->getOperand(1).getImm()));
2865+
TmpInst.addOperand(MCOperand::createImm(0));
28662866
EmitToStreamer(*OutStreamer, TmpInst);
28672867
return;
28682868
}

0 commit comments

Comments
 (0)