Fix PR422.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 16 Aug 2004 07:46:33 +0000 (07:46 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 16 Aug 2004 07:46:33 +0000 (07:46 +0000)
commit28531c71cd142f623d56a7ea13df2e014eebff54
tree6ee3aaa75133c190ec8cac98f6e294ab8d3d4a0d
parentd771c5340aa281c35d22e207b6321b52246639a2
Fix PR422.
Ouch! Changes in the lazy initialization code caused each incorporated
function to reprocess the entire function on every lookup of a value's
slot number. This caused a horrible slowdown in all functions. This
fix made llvm-dis go from "longer than I care to wait" (minutes) on a large
test case to 0.53 seconds.

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