[LV] The actual change I intended to commit in r204148. Sorry for the
authorChandler Carruth <chandlerc@gmail.com>
Tue, 18 Mar 2014 21:58:38 +0000 (21:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 18 Mar 2014 21:58:38 +0000 (21:58 +0000)
commit633eb08d3163944e4e9d67a9c9faf05c9a3ef7f1
tree59c5fad7dcc535dd1117e6303183383b17b8c8f6
parenta22773cd45e82e07691284abf85f0fa967eef520
[LV] The actual change I intended to commit in r204148. Sorry for the
noise.

Original commit log:
Replace some dead code with an assert. When I first ported this pass
from a loop pass to a function pass I did so in the naive, recursive
way. It doesn't actually work, we need a worklist instead. When
I switched to the worklist I didn't delete the naive recursion. That
recursion was also buggy because it was dead and never really exercised.

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