[PATCH] D35492: [DAGCombiner] Match non-uniform constant vectors using predicates (RFC).
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 09:54:48 PDT 2017
RKSimon created this revision.
Most combines currently recognise scalar and splat-vector constants, but not non-uniform vector constants.
This is a proposal to introduce a matching mechanism that uses predicates to check against BUILD_VECTOR of ConstantSDNode, as well as scalar ConstantSDNode cases.
I've changed a couple of predicates to demonstrate - the combine-shl changes add currently unsupported cases, while the MatchRotate replaces an existing mechanism.
Repository:
rL LLVM
https://reviews.llvm.org/D35492
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/combine-shl.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35492.106892.patch
Type: text/x-patch
Size: 7064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170717/f943ac33/attachment.bin>
More information about the llvm-commits
mailing list