summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-06-20 22:51:44 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-06-20 22:51:44 +0000
commit2b7cdf09a142b7f3e9a0ec8c7044eaf89bc59caa (patch)
tree98e08a0ccc51076ea3ef90748d6f404aad627126 /lib
parent846565924a6f2932efc75c249b29c3619e587bbb (diff)
downloadllvm-2b7cdf09a142b7f3e9a0ec8c7044eaf89bc59caa.tar.gz
llvm-2b7cdf09a142b7f3e9a0ec8c7044eaf89bc59caa.tar.bz2
llvm-2b7cdf09a142b7f3e9a0ec8c7044eaf89bc59caa.tar.xz
ARM: Remove a (false) dependency on the memoryoperand's value as we do not use
it at the moment. This allows to form more paired loads even when stack coloring pass destroys the memoryoperand's value. <rdar://problem/13978317> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMLoadStoreOptimizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
index c8ed5760f9..4e97ddaa2c 100644
--- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -1602,8 +1602,9 @@ ARMPreAllocLoadStoreOpt::CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1,
return false;
// Make sure the base address satisfies i64 ld / st alignment requirement.
+ // At the moment, we ignore the memoryoperand's value.
+ // If we want to use AliasAnalysis, we should check it accordingly.
if (!Op0->hasOneMemOperand() ||
- !(*Op0->memoperands_begin())->getValue() ||
(*Op0->memoperands_begin())->isVolatile())
return false;