summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-23 18:18:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-23 18:18:46 +0000
commitac4f66ff24e27bacd19828d9f9970d0311fbb129 (patch)
treef150ae5b392170b5a4651a7999e9dc6019ae0555 /llvm/lib/CodeGen
parent5b917e48a2b0d4bbee96bd4732e3fa094b84ba7f (diff)
downloadbcm5719-llvm-ac4f66ff24e27bacd19828d9f9970d0311fbb129.tar.gz
bcm5719-llvm-ac4f66ff24e27bacd19828d9f9970d0311fbb129.zip
-enable-unsafe-fp-math implies -enable-finite-only-fp-math
llvm-svn: 28437
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 2e1f872c8a9..cae696354fd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud