[PATCH] D77319: [DAGCombine] Remove the getNegatibleCost to avoid the out of sync with getNegatedExpression
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 10:24:18 PDT 2020
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12397
+ N1, DAG, LegalOperations, ForCodeSize))
+ return DAG.getNode(ISD::FSUB, DL, VT, N0, NegN1, Flags);
----------------
Would it help to add getCheaperNegatedExpression as a helper with the existing methods right away and rebase this on top of that?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77319/new/
https://reviews.llvm.org/D77319
More information about the llvm-commits
mailing list