Stop computing the number of uses twice per value in CodeGenPrepare's sinking of
authorCameron Zwarich <zwarich@apple.com>
Tue, 1 Mar 2011 21:13:53 +0000 (21:13 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 1 Mar 2011 21:13:53 +0000 (21:13 +0000)
commit4c078f0d6df6136cbbcf581c254869051d455fdc
tree08c0ca619952b9631bf3777a2ea1e1975b13b982
parent22a1df6bf24c188dd637a0bb2cf9a2648806b6b1
Stop computing the number of uses twice per value in CodeGenPrepare's sinking of
addressing code. On 403.gcc this almost halves CodeGenPrepare time and reduces
total llc time by 9.5%. Unfortunately, getNumUses() is still the hottest function
in llc.

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