From 3abf05739f032fd03ed30d665aa5ecb7cb2c44f9 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Tue, 13 Mar 2018 19:53:16 +0000 Subject: [MIR] Allow frame-setup and frame-destroy on the same instruction Nothing prevents us from having both frame-setup and frame-destroy on the same instruction. When merging: * frame-setup OPCODE1 * frame-destroy OPCODE2 into * frame-setup frame-destroy OPCODE3 we want to be able to print and parse both flags. llvm-svn: 327442 --- llvm/lib/CodeGen/MIRPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp') diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 683ad6e479a..e2be2e989b6 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -672,7 +672,7 @@ void MIPrinter::print(const MachineInstr &MI) { OS << " = "; if (MI.getFlag(MachineInstr::FrameSetup)) OS << "frame-setup "; - else if (MI.getFlag(MachineInstr::FrameDestroy)) + if (MI.getFlag(MachineInstr::FrameDestroy)) OS << "frame-destroy "; OS << TII->getName(MI.getOpcode()); -- cgit v1.2.3