[PATCH] D108284: [DAGCombiner] Combine frem into fdiv+ftrunc+fma
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 23 07:03:33 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:14425
+ // (frem x, y) -> (fma (fneg (ftrunc (fdiv x, y))), y, x)
+ if (Flags.hasApproximateFuncs() &&
----------------
Is this always preferable, even on targets where FREM is legal?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108284/new/
https://reviews.llvm.org/D108284
More information about the llvm-commits
mailing list