[SLPVectorizer] Tidyup isShuffle helper
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 18 Jun 2018 16:25:01 +0000 (16:25 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 18 Jun 2018 16:25:01 +0000 (16:25 +0000)
commit5b962b2fc345a66cd40cd9f1ac65d8b3b55ab794
treed06614ac1078a5ee4e43dc2e104614c41724dc76
parent88c142b42bedb78b3f2c1fb4995697c64859c027
[SLPVectorizer] Tidyup isShuffle helper

Ensure we keep track of the input vectors in all cases instead of just for SK_Select.

Ideally we'd reuse the shuffle mask pattern matching in TargetTransformInfo::getInstructionThroughput here to easily add support for all TargetTransformInfo::ShuffleKind without mass code duplication, I've added a TODO for now but D48236 should help us here.

Differential Revision: https://reviews.llvm.org/D48023

llvm-svn: 334958
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp