Fix some problems in SpeculativelyExecuteBB. Basically,
authorChris Lattner <sabre@nondot.org>
Mon, 19 Jan 2009 00:36:37 +0000 (00:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Jan 2009 00:36:37 +0000 (00:36 +0000)
commit6fe73bbcf3b6c1ddfd5e70e8b5188f8df439ace6
tree35792f081a7ed8c2b93ea73b776169dcd540cd78
parent9dd3b610dcb17f88ed52ae03022179bf21e0e132
Fix some problems in SpeculativelyExecuteBB.  Basically,
because of dead code, a phi could use the speculated instruction
that was not in "BB2".  Make this check explicit and tighten up
some other corners.  This fixes PR3292.  No testcase becauase this
depends entirely on visitation order of blocks and requires a
sequence of 8 passes to repro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62476 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp