[PATCH] D48236: [IR] move shuffle mask queries from TTI to ShuffleVectorInst
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 15 13:31:48 PDT 2018
spatel created this revision.
spatel added reviewers: RKSimon, lebedev.ri, efriedma, craig.topper.
Herald added a subscriber: mcrosier.
The optimizer is getting smarter (eg, https://reviews.llvm.org/D47986) about differentiating shuffles based on its mask values, so we should make queries on the mask constant operand generally available to avoid code duplication.
We'll probably use this soon in the vectorizers and instcombine (https://reviews.llvm.org/D48023 and https://bugs.llvm.org/show_bug.cgi?id=37806).
We might clean up TTI a bit more once all of its current 'SK_*' options are covered.
https://reviews.llvm.org/D48236
Files:
include/llvm/IR/Instructions.h
lib/Analysis/TargetTransformInfo.cpp
lib/IR/Instructions.cpp
unittests/IR/InstructionsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48236.151550.patch
Type: text/x-patch
Size: 21190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180615/db2f021f/attachment.bin>
More information about the llvm-commits
mailing list