SLPVectorizer: Fix invalid iterator errors
authorArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 20 Aug 2013 21:21:45 +0000 (21:21 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 20 Aug 2013 21:21:45 +0000 (21:21 +0000)
commite1f3ab69d1197d8214dbec70bbccc87e22363679
tree785a1e8e63491eb628ae1ea16b797f7386c62422
parent7a960a84552083c580046677ebae5b53936cafea
SLPVectorizer: Fix invalid iterator errors

Update iterator when the SLP vectorizer changes the instructions in the basic
block by restarting the traversal of the basic block.

Patch by Yi Jiang!

Fixes PR 16899.

llvm-svn: 188832
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/pr16899.ll [new file with mode: 0644]