When the source has a series of assignments, users reasonably want to
[oota-llvm.git] / lib / CodeGen / SelectionDAG / DAGCombiner.cpp
index 0437f59b4fefccb14930006c41b569eb66832469..6129401765c35a92e535d9e4b638010dcdd5609e 100644 (file)
@@ -10055,6 +10055,9 @@ bool DAGCombiner::MergeStoresOfConstantsOrVecElts(
 }
 
 bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) {
+  if (OptLevel == CodeGenOpt::None)
+    return false;
+
   EVT MemVT = St->getMemoryVT();
   int64_t ElementSizeBytes = MemVT.getSizeInBits()/8;
   bool NoVectors = DAG.getMachineFunction().getFunction()->hasFnAttribute(