rewrite a chunk of the PCH related value mapping stuff, adding
a new vector that just holds local values.  This substantially
speeds up the writeLLVMValues on large files.

This speeds up:
time ./cc1plus ~/instcombine.ii -O0 -o out2.bc -emit-llvm-bc -quiet

From:
2.545u 0.187s 0:02.73 99.6%	0+0k 0+0io 0pf+0w
To:
2.125u 0.204s 0:02.33 99.5%	0+0k 0+3io 0pf+0w

... which is about 18% faster.

llvm-svn: 53079
1 file changed