SLP Vectorizer: Erase instructions outside the vectorizeTree method.
authorNadav Rotem <nrotem@apple.com>
Sun, 23 Jun 2013 19:38:56 +0000 (19:38 +0000)
committerNadav Rotem <nrotem@apple.com>
Sun, 23 Jun 2013 19:38:56 +0000 (19:38 +0000)
commit787ad64b989937e0d79e176b0bf9af4a85a839d0
treecd980321b9c56050962977bf918bf61260f17089
parentfe2e66a6dab6162fb10ed2d576cd122f34d2626f
SLP Vectorizer: Erase instructions outside the vectorizeTree method.
The RAII builder location guard is saving a reference to instructions, so we can't erase instructions during vectorization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp