commit | f48b50a7ef18044c8f05075e6432d072db069f5d | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Mon Mar 27 07:26:17 2006 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Mon Mar 27 07:26:17 2006 +0000 |
tree | 6d821896e9f9af1abb615cb0eb7bb82f5c7e7a7d | |
parent | b86bd2cee25c15862247b4641700d448fbd0fa24 [diff] [blame] |
Incorrect check for FP all one's git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27169 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 9c8b130..8fec8a2 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -91,7 +91,8 @@ if (!cast<ConstantSDNode>(NotZero)->isAllOnesValue()) return false; } else if (isa<ConstantFPSDNode>(NotZero)) { - if (!cast<ConstantFPSDNode>(NotZero)->isExactlyValue(-1)) + if (DoubleToBits(cast<ConstantFPSDNode>(NotZero)->getValue()) == + (0ULL - 1)) return false; } else return false;