[llvm] [PowerPC] Remove `UnsafeFPMath` uses (PR #151897)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 02:57:50 PDT 2025
================
@@ -8861,9 +8854,7 @@ SDValue PPCTargetLowering::LowerINT_TO_FP(SDValue Op,
//
// However, if -enable-unsafe-fp-math is in effect, accept double
// rounding to avoid the extra overhead.
- if (Op.getValueType() == MVT::f32 &&
- !Subtarget.hasFPCVT() &&
- !DAG.getTarget().Options.UnsafeFPMath) {
+ if (Op.getValueType() == MVT::f32 && !Subtarget.hasFPCVT()) {
----------------
paperchalice wrote:
This requires changing `sitofp/uitofp` to accept fast math flags.
https://github.com/llvm/llvm-project/pull/151897
More information about the llvm-commits
mailing list