[llvm-commits] [llvm] r124557 - /llvm/trunk/lib/VMCore/ConstantFold.cpp
Nick Lewycky
nicholas at mxc.ca
Sat Jan 29 17:49:58 PST 2011
Author: nicholas
Date: Sat Jan 29 19:49:58 2011
New Revision: 124557
URL: http://llvm.org/viewvc/llvm-project?rev=124557&view=rev
Log:
Fix 'fcmp one' constant folding. Noticed by inspection.
Modified:
llvm/trunk/lib/VMCore/ConstantFold.cpp
Modified: llvm/trunk/lib/VMCore/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ConstantFold.cpp?rev=124557&r1=124556&r2=124557&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ConstantFold.cpp (original)
+++ llvm/trunk/lib/VMCore/ConstantFold.cpp Sat Jan 29 19:49:58 2011
@@ -1958,7 +1958,7 @@
else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
Result = 1;
break;
- case ICmpInst::ICMP_NE: // We know that C1 != C2
+ case FCmpInst::FCMP_ONE: // We know that C1 != C2
// We can only partially decide this relation.
if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
Result = 0;
More information about the llvm-commits
mailing list