[PATCH] D47983: [IR][PatternMatch] m_APInt(): allow undef elements.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 9 06:27:02 PDT 2018
lebedev.ri created this revision.
lebedev.ri added reviewers: spatel, craig.topper, RKSimon, arsenm.
Herald added a subscriber: wdng.
Allows to match more splatted vectors with integer constants,
with some elements being undef.
This deficiency was noticed during https://reviews.llvm.org/D47980.
This does not propagate `undef` elements, that would require
returning not the splatted `APInt`, but the vector itself,
which would require major changes on every callsite.
Later, i suppose some deduplication with `api_pred_ty` may be wanted.
Thoughts?
Repository:
rL LLVM
https://reviews.llvm.org/D47983
Files:
include/llvm/IR/PatternMatch.h
test/Transforms/InstCombine/canonicalize-lshr-shl-to-masking.ll
test/Transforms/InstCombine/canonicalize-shl-lshr-to-masking.ll
test/Transforms/InstCombine/masked-merge-add.ll
test/Transforms/InstCombine/masked-merge-xor.ll
test/Transforms/InstCombine/vec_shuffle.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47983.150624.patch
Type: text/x-patch
Size: 14158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180609/8fc4d288/attachment.bin>
More information about the llvm-commits
mailing list