[PATCH] D72312: [DAGCombine] Fold the (fma -x, y, -z) to -(fma x, y, z)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 04:08:20 PST 2020
xbolva00 added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12645
+ if (!TLI.isFNegFree(VT) &&
+ TLI.isNegatibleForFree(SDValue(N, 0), DAG, LegalOperations,
+ ForCodeSize) == 2)
----------------
It would be better if this function returns enum constant to improve readability.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72312/new/
https://reviews.llvm.org/D72312
More information about the llvm-commits
mailing list