Fix spelling in some comments.
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.cpp
index b3ed27b8d8971b95b5b1e5e4527c11b5874bc8e3..9cfd98092bbba6d93c028cae21249a6f2c6cff90 100644 (file)
@@ -807,7 +807,7 @@ TreePatternNode::isCommutativeIntrinsic(const CodeGenDAGPatterns &CDP) const {
 }
 
 
-/// ApplyTypeConstraints - Apply all of the type constraints relevent to
+/// ApplyTypeConstraints - Apply all of the type constraints relevant to
 /// this node and its children in the tree.  This returns true if it makes a
 /// change, false otherwise.  If a type contradiction is found, throw an
 /// exception.
@@ -1759,15 +1759,6 @@ static void InferFromPattern(const CodeGenInstruction &Inst,
     MayLoad = true;
   }
 
-  // Sanity-check the isSimpleLoad flag.
-  if (Inst.isSimpleLoad) {
-    if (!MayLoad)
-      fprintf(stderr,
-              "Warning: mayLoad flag not set or inferred for instruction '%s'"
-              " which has isSimpleLoad set.\n",
-              Inst.TheDef->getName().c_str());
-  }
-
   if (Inst.neverHasSideEffects) {
     if (HadPattern)
       fprintf(stderr, "Warning: neverHasSideEffects set on instruction '%s' "