[llvm] [SelectionDAGBuilder] Propagate fast-math flags to fpext (PR #167574)
Mikołaj Piróg via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 28 10:54:28 PST 2025
================
@@ -3976,7 +3976,10 @@ void SelectionDAGBuilder::visitFPExt(const User &I) {
SDValue N = getValue(I.getOperand(0));
EVT DestVT = DAG.getTargetLoweringInfo().getValueType(DAG.getDataLayout(),
I.getType());
- setValue(&I, DAG.getNode(ISD::FP_EXTEND, getCurSDLoc(), DestVT, N));
+ SDNodeFlags Flags;
+ if (auto *TruncInst = dyn_cast<FPMathOperator>(&I))
----------------
mikolaj-pirog wrote:
Sorry for long delay, here's the PR: https://github.com/llvm/llvm-project/pull/173792
https://github.com/llvm/llvm-project/pull/167574
More information about the llvm-commits
mailing list