diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-05-23 18:18:46 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-05-23 18:18:46 +0000 |
commit | 80235d508e5f7a9603ef43ba6625984173ff0323 (patch) | |
tree | 66ce594da4fbebdc0f37975d9f8aa819d6f03cc6 /lib/CodeGen/SelectionDAG | |
parent | 1fd8a4f65da140e5f340ccb79a33ed86fd82d169 (diff) | |
download | llvm-80235d508e5f7a9603ef43ba6625984173ff0323.tar.gz llvm-80235d508e5f7a9603ef43ba6625984173ff0323.tar.bz2 llvm-80235d508e5f7a9603ef43ba6625984173ff0323.tar.xz |
-enable-unsafe-fp-math implies -enable-finite-only-fp-math
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 2e1f872c8a..cae696354f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1105,8 +1105,7 @@ void SelectionDAGLowering::visitSetCC(User &I,ISD::CondCode SignedOpcode, SDOperand Op1 = getValue(I.getOperand(0)); SDOperand Op2 = getValue(I.getOperand(1)); ISD::CondCode Opcode = SignedOpcode; - if ((!UnsafeFPMath && !FiniteOnlyFPMath) && - I.getOperand(0)->getType()->isFloatingPoint()) + if (!FiniteOnlyFPMath() && I.getOperand(0)->getType()->isFloatingPoint()) Opcode = FPOpcode; else if (I.getOperand(0)->getType()->isUnsigned()) Opcode = UnsignedOpcode; |