When making a clone of a DSGraph from the BU pass, make sure to remember that
authorChris Lattner <sabre@nondot.org>
Tue, 22 Mar 2005 01:50:42 +0000 (01:50 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Mar 2005 01:50:42 +0000 (01:50 +0000)
commit9308a35532bb756cc03edbdc2deeea6f2d3ed1ed
treea6553de14f474d7b88be44f57313aaff0b9eb2bb
parent3bc703ba22e8e04b4120dad6dffdf63bb373083c
When making a clone of a DSGraph from the BU pass, make sure to remember that
this clone is supposed to be used for *ALL* of the functions in the SCC.

This fixes the memory explosion problem the TD pass was having, reducing the
memory growth from 24MB -> 3.5MB on povray and 270MB ->8.3MB on perlbmk!
This obviously also speeds up the TD pass *a lot*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DataStructure/TopDownClosure.cpp