give instcombine a custom IRBuilder that adds new instructions to the
authorChris Lattner <sabre@nondot.org>
Sun, 30 Aug 2009 07:44:24 +0000 (07:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Aug 2009 07:44:24 +0000 (07:44 +0000)
commit743810620742c92be90a30c7fc7d5e6631baff1f
tree537199699e4c590833bcd6b8e2433de47c1da2b8
parent3a3cb6c59edb35184aad06c6d6f32ac2572b3866
give instcombine a custom IRBuilder that adds new instructions to the
workslist and is set to insert new instructions before the current one.
Convert a bunch of stuff that used to call InsertNewInstBefore over to
use it, greatly simplifying code and making it more natural.

There is still a lot more to go, but this is a good start.

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