Avoid analyzing instructions in blocks not reachable from the entry block.
authorDan Gohman <gohman@apple.com>
Tue, 9 Mar 2010 23:46:50 +0000 (23:46 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 9 Mar 2010 23:46:50 +0000 (23:46 +0000)
commit4ecbca558f8ee558dd0e84e079f16528fd9768f2
treec697d4a61b5d72c1a576cd7e5bcd4432b42eb674
parent0d9d70f0130ca609a1f41e0d90b3952751c110ab
Avoid analyzing instructions in blocks not reachable from the entry block.
They are lots of trouble, and they don't matter. This fixes PR6559.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98103 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/unreachable-code.ll [new file with mode: 0644]