diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-07-08 20:12:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-07-08 20:12:24 +0000 |
commit | 5d115a0ff9634149ef021ec9335a47c52aaaafb0 (patch) | |
tree | 093361d95c9b8f76aaac2cd5709202cd5cb5c778 /lib/Target | |
parent | ca76f6f57cc50fcdbdb661ea80f7ffd42220fdbe (diff) | |
download | external_llvm-5d115a0ff9634149ef021ec9335a47c52aaaafb0.zip external_llvm-5d115a0ff9634149ef021ec9335a47c52aaaafb0.tar.gz external_llvm-5d115a0ff9634149ef021ec9335a47c52aaaafb0.tar.bz2 |
Check for FiniteOnlyFPMath as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 8ca69cd..e1e5a80 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -2295,7 +2295,7 @@ SDValue ARMTargetLowering::getVFPCmp(SDValue &LHS, SDValue &RHS, ISD::CondCode CC, SDValue &ARMCC, SelectionDAG &DAG, DebugLoc dl) const { - if (UnsafeFPMath && + if (UnsafeFPMath && FiniteOnlyFPMath() && (CC == ISD::SETEQ || CC == ISD::SETOEQ || CC == ISD::SETNE || CC == ISD::SETUNE) && canBitcastToInt(LHS.getNode()) && canBitcastToInt(RHS.getNode())) { |