ARM: Remove a (false) dependency on the memoryoperand's value as we do not use
[oota-llvm.git] / lib / Target / ARM / ARMLoadStoreOptimizer.cpp
index c8ed5760f935de0c9dab586e65dc8648f04ea0f2..4e97ddaa2c3521ad4b1cbb9365a4fcf5048c3a4d 100644 (file)
@@ -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;