diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-03-05 18:43:55 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-03-05 18:43:55 +0000 |
commit | 9e66cbb366fab4e6d128473cba2a0dd37e1b5947 (patch) | |
tree | 11696eb2007bf5526eea721cb6f3b6998f18f73d /llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp | |
parent | a8d177b2d49352c88b51e6e372c47c23bdb404b5 (diff) | |
download | bcm5719-llvm-9e66cbb366fab4e6d128473cba2a0dd37e1b5947.tar.gz bcm5719-llvm-9e66cbb366fab4e6d128473cba2a0dd37e1b5947.zip |
In Thumb1 mode the constant might be materialized via the load from constpool. Emit unwinding information in case when this load from constpool is used to change the stack pointer in the prologue.
llvm-svn: 127105
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp index 4d272ee4248..d1d7ec49e35 100644 --- a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp +++ b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp @@ -65,9 +65,9 @@ Thumb1RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB, unsigned Idx = ConstantPool->getConstantPoolIndex(C, 4); BuildMI(MBB, MBBI, dl, TII.get(ARM::tLDRpci)) - .addReg(DestReg, getDefRegState(true), SubIdx) - .addConstantPoolIndex(Idx).addImm(Pred).addReg(PredReg) - .setMIFlags(MIFlags) + .addReg(DestReg, getDefRegState(true), SubIdx) + .addConstantPoolIndex(Idx).addImm(Pred).addReg(PredReg) + .setMIFlags(MIFlags); } |