diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-01-26 19:30:14 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-01-26 19:30:14 +0000 |
commit | 59066a0803e7cc10ba004cf862baf19a4ad161ca (patch) | |
tree | 84243869036879d9c4c94ce86cca6e13da234c0c /llvm/lib/CodeGen/SelectionDAG | |
parent | e4db1879616ba07e453172cf9e60708b8e7f01f9 (diff) | |
download | bcm5719-llvm-59066a0803e7cc10ba004cf862baf19a4ad161ca.tar.gz bcm5719-llvm-59066a0803e7cc10ba004cf862baf19a4ad161ca.zip |
tidy up; NFC
llvm-svn: 258838
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index abe6282bdef..85145fd5da0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1249,17 +1249,17 @@ SDValue SelectionDAG::getConstantFP(const ConstantFP& V, SDLoc DL, EVT VT, SDValue SelectionDAG::getConstantFP(double Val, SDLoc DL, EVT VT, bool isTarget) { EVT EltVT = VT.getScalarType(); - if (EltVT==MVT::f32) + if (EltVT == MVT::f32) return getConstantFP(APFloat((float)Val), DL, VT, isTarget); - else if (EltVT==MVT::f64) + else if (EltVT == MVT::f64) return getConstantFP(APFloat(Val), DL, VT, isTarget); - else if (EltVT==MVT::f80 || EltVT==MVT::f128 || EltVT==MVT::ppcf128 || - EltVT==MVT::f16) { - bool ignored; - APFloat apf = APFloat(Val); - apf.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven, - &ignored); - return getConstantFP(apf, DL, VT, isTarget); + else if (EltVT == MVT::f80 || EltVT == MVT::f128 || EltVT == MVT::ppcf128 || + EltVT == MVT::f16) { + bool Ignored; + APFloat APF = APFloat(Val); + APF.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven, + &Ignored); + return getConstantFP(APF, DL, VT, isTarget); } else llvm_unreachable("Unsupported type in getConstantFP"); } |