From 2b6e66267283215c7c5078d1df997df1380084f7 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 8 Dec 2014 02:07:22 +0000 Subject: Revert a part of r223583, for now. It seems causing different emission between stage2(gcc-clang) and stage3 clang. Investigating. llvm-svn: 223624 --- llvm/lib/Analysis/InstructionSimplify.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index e58998897c2..5c536aa79c4 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -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; } -- cgit v1.2.3