Use FoldConstantArithmetic instead of dyn_cast in visitFP_ROUND.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
15863–15864 | Might this be better as just a constant fold attempt? if (SDValue C = DAG.FoldConstantArithmetic(ISD::FP_ROUND, SDLoc(N), VT, {N0, N1})) return C; |
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
15863–15864 | Thank you. Good suggestion. |
Comment Actions
(please drop the NFC as it probably has different behaviour now - vector support etc)
Might this be better as just a constant fold attempt?