Make DSE only scan blocks that are reachable from the entry
authorChris Lattner <sabre@nondot.org>
Thu, 11 Feb 2010 05:11:54 +0000 (05:11 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 11 Feb 2010 05:11:54 +0000 (05:11 +0000)
commit98df4f9cf2dea81af1cc2e68f23b285d22cebc6a
tree47c8b84c69a8ce4c6f5dc24df0ded8eac4168e6c
parent5cc25ce17d7d730b33803ae23a17c05a39427cce
Make DSE only scan blocks that are reachable from the entry
block.  Other blocks may have pointer cycles that will crash
basicaa and other alias analyses.  In any case, there is no
point wasting cycles optimizing dead blocks.  This fixes
rdar://7635088

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95852 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/crash.ll