diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-27 07:26:17 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-27 07:26:17 +0000 |
commit | f48b50a7ef18044c8f05075e6432d072db069f5d (patch) | |
tree | 6d821896e9f9af1abb615cb0eb7bb82f5c7e7a7d /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | b86bd2cee25c15862247b4641700d448fbd0fa24 (diff) |
Incorrect check for FP all one's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 9c8b13029f..8fec8a268b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -91,7 +91,8 @@ bool ISD::isBuildVectorAllOnes(const SDNode *N) { 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; |