Revert r195599 as it broke the builds.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / DAGCombiner.cpp
index 805cc9e0f27f75d8e1e6ee3ae8bae09e4e319652..c126a53611ec58a615d4d7167ea7a2a73c61cd6c 100644 (file)
@@ -8692,11 +8692,6 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) {
         Index = STn;
         break;
       } else if (LoadSDNode *Ldn = dyn_cast<LoadSDNode>(NextInChain)) {
-        if (Ldn->isVolatile()) {
-          Index = NULL;
-          break;
-        }
-
         // Save the load node for later. Continue the scan.
         AliasLoadNodes.push_back(Ldn);
         NextInChain = Ldn->getChain().getNode();