diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/VE/VEInstrInfo.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Target/VE/VEInstrInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/VE/VEInstrInfo.cpp b/contrib/llvm-project/llvm/lib/Target/VE/VEInstrInfo.cpp index ddcfb9da8249..46846edfeafb 100644 --- a/contrib/llvm-project/llvm/lib/Target/VE/VEInstrInfo.cpp +++ b/contrib/llvm-project/llvm/lib/Target/VE/VEInstrInfo.cpp @@ -942,11 +942,11 @@ bool VEInstrInfo::expandPostRAPseudo(MachineInstr &MI) const { MachineInstrBuilder MIB = BuildMI(*MBB, MI, DL, get(VE::SVMmi), Dest).addReg(VMZ).addImm(Imm); MachineInstr *Inst = MIB.getInstr(); - MI.eraseFromParent(); if (KillSrc) { const TargetRegisterInfo *TRI = &getRegisterInfo(); Inst->addRegisterKilled(MI.getOperand(1).getReg(), TRI, true); } + MI.eraseFromParent(); return true; } case VE::VFMKyal: @@ -956,6 +956,7 @@ bool VEInstrInfo::expandPostRAPseudo(MachineInstr &MI) const { case VE::VFMKSyvl: case VE::VFMKSyvyl: expandPseudoVFMK(*this, MI); + return true; } return false; } |
