Change ConstantArray::replaceUsesOfWithOnConstant to attempt to update
authorChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 22:51:37 +0000 (22:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 22:51:37 +0000 (22:51 +0000)
commitcea141f1d1f85997c4c657009994bdacbc3a3dbf
treeb0905030996259f2fdaec8372f5fd76b39bce1cb
parent5cbade9f8340f5266d9f9ba401d494e636b7c42f
Change ConstantArray::replaceUsesOfWithOnConstant to attempt to update
constant arrays in place instead of reallocating them and replaceAllUsesOf'ing
the result.  This speeds up a release build of the bcreader from:

136.987u 120.866s 4:24.38
to
49.790u 49.890s 1:40.14

... a 2.6x speedup parsing a large python bc file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Constants.cpp