BBVectorize should ignore unreachable blocks.
authorHal Finkel <hfinkel@anl.gov>
Mon, 22 Oct 2012 18:00:55 +0000 (18:00 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 22 Oct 2012 18:00:55 +0000 (18:00 +0000)
commit931c52b84ca0ecf8f1736a080ac851e09628e5a2
treec948256d9186d43da86ffbc958a21c323d7416a8
parentdbf47836341087b7058187302fb980053ea08537
BBVectorize should ignore unreachable blocks.

Unreachable blocks can have invalid instructions. For example,
jump threading can produce self-referential instructions in
unreachable blocks. Also, we should not be spending time
optimizing unreachable code. Fixes PR14133.

llvm-svn: 166423
llvm/lib/Transforms/Vectorize/BBVectorize.cpp
llvm/test/Transforms/BBVectorize/simple-ldstr.ll