Teach jump threading to clean up after itself, DCE and constfolding the
authorChris Lattner <sabre@nondot.org>
Mon, 1 Dec 2008 04:48:07 +0000 (04:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Dec 2008 04:48:07 +0000 (04:48 +0000)
commitef0c6744d5050ad724e1ae90e6ac2b932ce01e13
tree0d464d26742bb180609160a827752095f81c9fe2
parent11240d0fdd4e26b9035ccb31fe1f962580cdb19b
Teach jump threading to clean up after itself, DCE and constfolding the
new instructions it simplifies.  Because we're threading jumps on edges
with constants coming in from PHI's, we inherently are exposing a lot more
constants to the new block.  Folding them and deleting dead conditions
allows the cost model in jump threading to be more accurate as it iterates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60327 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp