[PATCH] D58503: [SelectionDAG] Add demanded elts variants to isConstSplat helpers. NFCI.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 05:45:30 PST 2019
RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, niravd, efriedma.
Herald added a subscriber: jdoerfert.
Herald added a project: LLVM.
These helpers extend the existing isConstOrConstSplat helper checks to support DemandedElts masks as well.
We already had a local version of this in SelectionDAG that computeKnownBits/ComputeNumSignBits made use of, but this adds the functionality directly to the BuildVectorSDNode node and extends the isConstOrConstSplat to use that.
This will allow us to reuse the functionality in SimplifyDemandedVectorElts/SimplifyDemandedBits.
Repository:
rL LLVM
https://reviews.llvm.org/D58503
Files:
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58503.187775.patch
Type: text/x-patch
Size: 11549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190221/31e511f0/attachment.bin>
More information about the llvm-commits
mailing list