Revert r240291: causes problems in self-hosted builds.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / DAGCombiner.cpp
index 80a1b5b3be79bb386efd966342de49fea3bdd9e1..bc2e5f13d4384faf2dc84210a27adb3321460518 100644 (file)
@@ -4275,7 +4275,7 @@ SDValue DAGCombiner::visitSHL(SDNode *N) {
   if (isNullConstant(N0))
     return N0;
   // fold (shl x, c >= size(x)) -> undef
-  if (N1C && N1C->getAPIntValue().uge(OpSizeInBits))
+  if (N1C && N1C->getZExtValue() >= OpSizeInBits)
     return DAG.getUNDEF(VT);
   // fold (shl x, 0) -> x
   if (N1C && N1C->isNullValue())