[llvm-commits] [llvm] r146787 - /llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Dec 16 16:07:02 PST 2011
Author: stoklund
Date: Fri Dec 16 18:07:02 2011
New Revision: 146787
URL: http://llvm.org/viewvc/llvm-project?rev=146787&view=rev
Log:
Preserve more memory operands in ARMExpandPseudo.
I don't think this affects anything but verbose assembly.
Modified:
llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp?rev=146787&r1=146786&r2=146787&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp Fri Dec 16 18:07:02 2011
@@ -631,6 +631,8 @@
// Add an implicit def for the super-register.
MIB.addReg(DstReg, RegState::ImplicitDefine | getDeadRegState(DstIsDead));
TransferImpOps(MI, MIB, MIB);
+ // Transfer memoperands.
+ MIB->setMemRefs(MI.memoperands_begin(), MI.memoperands_end());
MI.eraseFromParent();
}
@@ -1024,6 +1026,7 @@
// Add an implicit def for the super-register.
MIB.addReg(DstReg, RegState::ImplicitDefine | getDeadRegState(DstIsDead));
TransferImpOps(MI, MIB, MIB);
+ MIB.setMemRefs(MI.memoperands_begin(), MI.memoperands_end());
MI.eraseFromParent();
return true;
}
@@ -1054,6 +1057,7 @@
MIB->addRegisterKilled(SrcReg, TRI, true);
TransferImpOps(MI, MIB, MIB);
+ MIB.setMemRefs(MI.memoperands_begin(), MI.memoperands_end());
MI.eraseFromParent();
return true;
}
More information about the llvm-commits
mailing list