Revert a part of r223583, for now. It seems causing different emission between stage2...
[oota-llvm.git] / lib / Analysis / InstructionSimplify.cpp
index e58998897c2d1567d504f5f432123bb4bc13eebb..5c536aa79c480c657aefd31481aa65ef1aecddf9 100644 (file)
@@ -1476,11 +1476,6 @@ static Value *simplifyUnsignedRangeCheck(ICmpInst *ZeroICmp,
     return UnsignedICmp;
   }
 
-  // X < Y && Y == 0  -->  false
-  if (UnsignedPred == ICmpInst::ICMP_ULT && EqPred == ICmpInst::ICMP_EQ &&
-      IsAnd)
-    return getFalse(UnsignedICmp->getType());
-
   return nullptr;
 }