diff options
author | Tim Northover <tnorthover@apple.com> | 2014-05-22 11:56:20 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-05-22 11:56:20 +0000 |
commit | 4a3ab28ac73ae585d6c82fc46572d6613db2bf0f (patch) | |
tree | 7d0c50d626c12589671f851345d599cfaf8238b2 /llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp | |
parent | c350acfda59336e54a5dd4e139dd5c650e6a1968 (diff) | |
download | bcm5719-llvm-4a3ab28ac73ae585d6c82fc46572d6613db2bf0f.tar.gz bcm5719-llvm-4a3ab28ac73ae585d6c82fc46572d6613db2bf0f.zip |
ARM64: model pre/post-indexed operations properly.
We should be keeping track of the writeback on these instructions,
otherwise we're relying on LLVM's stupidity for correct code.
Fortunately, the MC layer can now handle all required constraints,
which means we can get rid of the CodeGen only PseudoInsts too.
llvm-svn: 209426
Diffstat (limited to 'llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp')
-rw-r--r-- | llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp b/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp index 9a8e1c3d91c..e2c4b13f036 100644 --- a/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp +++ b/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp @@ -528,6 +528,7 @@ ARM64LoadStoreOpt::mergePreIdxUpdateInsn(MachineBasicBlock::iterator I, unsigned NewOpc = getPreIndexedOpcode(I->getOpcode()); MachineInstrBuilder MIB = BuildMI(*I->getParent(), I, I->getDebugLoc(), TII->get(NewOpc)) + .addOperand(Update->getOperand(0)) .addOperand(I->getOperand(0)) .addOperand(I->getOperand(1)) .addImm(Value); @@ -571,6 +572,7 @@ ARM64LoadStoreOpt::mergePostIdxUpdateInsn(MachineBasicBlock::iterator I, unsigned NewOpc = getPostIndexedOpcode(I->getOpcode()); MachineInstrBuilder MIB = BuildMI(*I->getParent(), I, I->getDebugLoc(), TII->get(NewOpc)) + .addOperand(Update->getOperand(0)) .addOperand(I->getOperand(0)) .addOperand(I->getOperand(1)) .addImm(Value); |