diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-01-30 01:49:58 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-01-30 01:49:58 +0000 |
commit | bb25e2c91b79fc31103510860e1817863a674bc5 (patch) | |
tree | 57c355bab1e477d5b17fea3dc9d182201b581ace | |
parent | b8787f340326100288aeda455ee8dbee7ab2f209 (diff) |
Fix 'fcmp one' constant folding. Noticed by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124557 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 8dc2caafe8..f2129c08d2 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -1958,7 +1958,7 @@ Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred, 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; |