Taints relaxed loads to enforce load/store ordering
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAG.cpp
index 893871f944857a499d6752b47d2299f823a5848b..e845a9919efba1ede4626ad2c7e01cffdf20637e 100644 (file)
@@ -3465,10 +3465,14 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL, EVT VT, SDValue N1,
     assert(VT.isInteger() && "This operator does not apply to FP types!");
     assert(N1.getValueType() == N2.getValueType() &&
            N1.getValueType() == VT && "Binary operator types must match!");
+
+    // XXX-disabled:
+    /*
     // (X & 0) -> 0.  This commonly occurs when legalizing i64 values, so it's
     // worth handling here.
     if (N2C && N2C->isNullValue())
       return N2;
+    */
     if (N2C && N2C->isAllOnesValue())  // X & -1 -> X
       return N1;
     break;