Use a smallvector for inactiveCounts and initialize it lazily
authorChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2008 22:08:41 +0000 (22:08 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2008 22:08:41 +0000 (22:08 +0000)
commitfe42462164b7dfcb31922b358fbaf8d9db7eb8d2
treef888a577acfb51b8eb7c89ba0a946b0fd13c2deb
parente6d088acc90e422451e098555d383d4d65b6ce6b
Use a smallvector for inactiveCounts and initialize it lazily
instead of init'ing it maximally to zeros on entry.  getFreePhysReg
is pretty hot and only a few elements are typically used.  This speeds
up linscan by 5% on 176.gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47631 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocLinearScan.cpp