[PATCH] D50083: [SelectionDAG] Make binop reduction matcher available to all targets
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 31 11:16:45 PDT 2018
RKSimon added inline comments.
================
Comment at: include/llvm/CodeGen/SelectionDAG.h:1510
+ // was not matched.
+ SDValue matchBinOpReduction(SDNode *Extract, unsigned &BinOp,
+ ArrayRef<ISD::NodeType> CandidateBinOps);
----------------
hfinkel wrote:
> This looks like a good thing to put in target-independent code (especially because it is matching a canonical form). We should document BinOp and CandidateBinOps here. Also. where is BinOp unsigned and CandidateBinOps is an array of ISD::NodeType? Should BinOp also be ISD::NodeType& ?
That was how it was in x86 - but we should clean it up here. Should we stick to ISD::NodeType or should we relax it to unsigned to allow us to use target ISD opcodes?
Repository:
rL LLVM
https://reviews.llvm.org/D50083
More information about the llvm-commits
mailing list