[llvm] r229425 - ARM: Transfer kill flag when lowering VSTMQIA to VSTMDIA.

Matthias Braun matze at braunis.de
Mon Feb 16 11:34:31 PST 2015


Author: matze
Date: Mon Feb 16 13:34:30 2015
New Revision: 229425

URL: http://llvm.org/viewvc/llvm-project?rev=229425&view=rev
Log:
ARM: Transfer kill flag when lowering VSTMQIA to VSTMDIA.

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=229425&r1=229424&r2=229425&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp Mon Feb 16 13:34:30 2015
@@ -1132,7 +1132,8 @@ bool ARMExpandPseudo::ExpandMI(MachineBa
       // Add the source operands (D subregs).
       unsigned D0 = TRI->getSubReg(SrcReg, ARM::dsub_0);
       unsigned D1 = TRI->getSubReg(SrcReg, ARM::dsub_1);
-      MIB.addReg(D0).addReg(D1);
+      MIB.addReg(D0, SrcIsKill ? RegState::Kill : 0)
+         .addReg(D1, SrcIsKill ? RegState::Kill : 0);
 
       if (SrcIsKill)      // Add an implicit kill for the Q register.
         MIB->addRegisterKilled(SrcReg, TRI, true);





More information about the llvm-commits mailing list