diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 88b3823..8586d7f 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -783,17 +783,7 @@ protected: /// addLegalFPImmediate - Indicate that this target can instruction select /// the specified FP immediate natively. void addLegalFPImmediate(const APFloat& Imm) { - // Incoming constants are expected to be double. We also add - // the float version. It is expected that all constants are exactly - // representable as floats. - assert(&Imm.getSemantics() == &APFloat::IEEEdouble); - APFloat Immf = APFloat(Imm); - // Rounding mode is not supposed to matter here... - if (Immf.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven) != - APFloat::opOK) - assert(0); LegalFPImmediates.push_back(Imm); - LegalFPImmediates.push_back(Immf); } /// setTargetDAGCombine - Targets should invoke this method for each target |