[SLP]Fix PR49898: Infinite loop in SLP vectorizer.
authorAlexey Bataev <a.bataev@outlook.com>
Thu, 8 Apr 2021 18:33:57 +0000 (11:33 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 8 Apr 2021 21:18:06 +0000 (14:18 -0700)
commitab124bbe2a7c59cf23da5728dc239aba6f1efabe
tree3e8913d56ed60046e76073b1dfbddbbe68dab6ca
parent35393c865c2cb1afbf1315a9d48ac41994cd1344
[SLP]Fix PR49898: Infinite loop in SLP vectorizer.

We should not re-try attempt of finding of the consecutive store chain
if it was tried before.

Differential Revision: https://reviews.llvm.org/D100131
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/several_store_chains.ll [new file with mode: 0644]