From 798d013bcba198af628d2dab8448f709b96e4a75 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 10 Mar 2012 18:20:55 +0000 Subject: [PATCH] As Duncan pointed out, pointers tend not to be in floating point format...for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152499 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/InstructionSimplify.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp index 95fd48ee658..0dd0d6ed3a1 100644 --- a/lib/Analysis/InstructionSimplify.cpp +++ b/lib/Analysis/InstructionSimplify.cpp @@ -1610,30 +1610,30 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS, // If both sides are different identified objects, they aren't equal // unless they're null. if (LHSPtr != RHSPtr && llvm::isIdentifiedObject(RHSPtr) && - (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::FCMP_UEQ)) + Pred == CmpInst::ICMP_EQ) return ConstantInt::get(ITy, false); // A local identified object (alloca or noalias call) can't equal any // incoming argument, unless they're both null. if (isa(LHSPtr) && isa(RHSPtr) && - (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::FCMP_UEQ)) + Pred == CmpInst::ICMP_EQ) return ConstantInt::get(ITy, false); } // Assume that the constant null is on the right. if (llvm::isKnownNonNull(LHSPtr) && isa(RHSPtr)) { - if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::FCMP_UEQ) + if (Pred == CmpInst::ICMP_EQ) return ConstantInt::get(ITy, false); - else if (Pred == CmpInst::ICMP_NE || Pred == CmpInst::FCMP_ONE) + else if (Pred == CmpInst::ICMP_NE) return ConstantInt::get(ITy, true); } } else if (isa(LHSPtr)) { RHSPtr = RHSPtr->stripInBoundsOffsets(); // An alloca can't be equal to an argument. if (isa(RHSPtr)) { - if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::FCMP_UEQ) + if (Pred == CmpInst::ICMP_EQ) return ConstantInt::get(ITy, false); - else if (Pred == CmpInst::ICMP_NE || Pred == CmpInst::FCMP_ONE) + else if (Pred == CmpInst::ICMP_NE) return ConstantInt::get(ITy, true); } } -- 2.34.1