Make the "pruning cloner" smarter. As it propagates constants through the
authorChris Lattner <sabre@nondot.org>
Thu, 1 Jun 2006 19:19:23 +0000 (19:19 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Jun 2006 19:19:23 +0000 (19:19 +0000)
commit35033efd08420a8a2aad14083a0178e2edebdfd6
treec7baf0ce8719738fa524d51ca180877fde17f939
parent620fd68b1086b4d99b23951357299bee357aa62a
Make the "pruning cloner" smarter.  As it propagates constants through the
code (while cloning) it often gets the branch/switch instructions.  Since it
knows that edges of the CFG are dead, it need not clone (or even look) at
the obviously dead blocks.  This should speed up the inliner substantially on
code where there are lots of inlinable calls to functions with constant
arguments.  On C++ code in particular, this kicks in.

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