[SLP] limit vectorization of Constant subclasses (PR33958)
authorSanjay Patel <spatel@rotateright.com>
Sun, 15 Sep 2019 13:03:24 +0000 (13:03 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 15 Sep 2019 13:03:24 +0000 (13:03 +0000)
commitb6a0faaa0c793aede7911be241b1895a9ebea41c
tree21064ece4fbec3859baa8ba07b9842a7f59cc0e8
parent06b309d5274951a9c3c37598afece51b3948e2a4
[SLP] limit vectorization of Constant subclasses (PR33958)

This is a fix for:
https://bugs.llvm.org/show_bug.cgi?id=33958

It seems universally true that we would not want to transform this kind of
sequence on any target, but if that's not correct, then we could view this
as a target-specific cost model problem. We could also white-list ConstantInt,
ConstantFP, etc. rather than blacklist Global and ConstantExpr.

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

llvm-svn: 371931
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/consecutive-access.ll