Speedup bitcode writer. Do not walk all values for all functions to emit function...
authorDevang Patel <dpatel@apple.com>
Wed, 2 Jun 2010 23:05:04 +0000 (23:05 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 2 Jun 2010 23:05:04 +0000 (23:05 +0000)
commit6209869f83979319e2e5791382f09b83e54191e0
tree834ba2acc95eeea1ba39031a2c266569ca8ade0a
parent05c68374c1c73599a0b7044ad09fb4827d128ec5
Speedup bitcode writer. Do not walk all values for all functions to emit function local metadata. In one testcase, probably worst case scenario, the 70x speed up is seen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/Bitcode/Writer/ValueEnumerator.h