[PATCH] D77319: [DAGCombine] Remove the getNegatibleCost to avoid the out of sync with getNegatedExpression
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 05:59:21 PDT 2020
spatel added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/TargetLowering.h:3554
+ unsigned Depth = 0) const {
+ NegatibleCost Cost = NegatibleCost::Expensive;
+ SDValue V =
----------------
Do we need to initialize the output value here (and other parts of the patch)? I think it would be better to just document in the code comment for this function that the Cost value is invalid if no SDValue is returned. Alternatively, we could add an 'Invalid' enum value if that's really a concern.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77319/new/
https://reviews.llvm.org/D77319
More information about the llvm-commits
mailing list