Do a topological sort of the types before writing them out.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 6 Apr 2011 16:49:37 +0000 (16:49 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 6 Apr 2011 16:49:37 +0000 (16:49 +0000)
commitf5a90561b033428bd2c5b365ca09ed9e688dce6e
tree3cc040001ba1b5e971102093e005276ee69c4cf6
parent714b34fc24d5df02aff01bd64eb80e5945d663ac
Do a topological sort of the types before writing them out.

This takes the linking of libxul on linux from 6m54.931s to 5m39.840s.

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