diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-09-10 00:24:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-09-10 00:24:59 +0000 |
commit | eb1db169bfaaf7190ba7667bf6fccf2992ab900f (patch) | |
tree | b2cb74d0a9fc8e7156951fb7dbb9253a82f2fba8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | 648930b9bade54958e35a16f4996a6d86f1ef60c (diff) | |
download | bcm5719-llvm-eb1db169bfaaf7190ba7667bf6fccf2992ab900f.tar.gz bcm5719-llvm-eb1db169bfaaf7190ba7667bf6fccf2992ab900f.zip |
Check that both operands are f32 before attempting to lower.
llvm-svn: 56036
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index ddf006677e6..c53d63e6947 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -3409,6 +3409,7 @@ SelectionDAGLowering::visitPow(CallInst &I) { bool IsExp10 = false; if (getValue(Val).getValueType() == MVT::f32 && + getValue(I.getOperand(2)).getValueType() == MVT::f32 && LimitFloatPrecision > 0 && LimitFloatPrecision <= 18) { if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(Val))) { if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { |