summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-03-10 18:20:55 +0000
committerBill Wendling <isanbard@gmail.com>2012-03-10 18:20:55 +0000
commit2bbb7945e79751261c504c2e60246b9772110855 (patch)
tree1621eedbf286e1d150c0869423c702a8cd503377 /llvm/lib/Analysis/InstructionSimplify.cpp
parentfee6372daafe6b62ac07ad17bb41fe902540f303 (diff)
downloadbcm5719-llvm-2bbb7945e79751261c504c2e60246b9772110855.tar.gz
bcm5719-llvm-2bbb7945e79751261c504c2e60246b9772110855.zip
As Duncan pointed out, pointers tend not to be in floating point format...for now.
llvm-svn: 152499
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 95fd48ee658..0dd0d6ed3a1 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/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<Instruction>(LHSPtr) && isa<Argument>(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<ConstantPointerNull>(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<Argument>(LHSPtr)) {
RHSPtr = RHSPtr->stripInBoundsOffsets();
// An alloca can't be equal to an argument.
if (isa<AllocaInst>(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);
}
}
OpenPOWER on IntegriCloud