| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | remove some pointless asserts | Chris Lattner | 2005-03-20 | 1 | -1/+0 |
| | | | | | llvm-svn: 20713 | ||||
| * | Create an equivalence class of global variables that DSA will never be able | Chris Lattner | 2005-03-19 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to tell apart anyway, and only track the leader for of these equivalence classes in our graphs. This dramatically reduces the number of GlobalValue*'s that appear in scalar maps, which A) reduces memory usage, by eliminating many many scalarmap entries and B) reduces time for operations that need to execute an operation for each global in the scalar map. As an example, this reduces the memory used to analyze 176.gcc from 1GB to 511MB, which (while it's still way too much) is better because it doesn't hit swap anymore. On eon, this shrinks the local graphs from 14MB to 6.8MB, shrinks the bu+td graphs of povray from 50M to 40M, shrinks the TD graphs of 130.li from 8.8M to 3.6M, etc. This change also speeds up DSA on large programs where this makes a big difference. For example, 130.li goes from 1.17s -> 0.56s, 134.perl goes from 2.14 -> 0.93s, povray goes from 15.63s->7.99s (!!!). This also apparently either fixes the problem that caused DSA to crash on perlbmk and gcc, or it hides it, because DSA now works on these. These both take entirely too much time in the TD pass (147s for perl, 538s for gcc, vs 7.67/5.9s in the bu pass for either one), but this is a known problem that I'll deal with later. llvm-svn: 20696 | ||||
| * | Switch to use the new interface for the EquivalenceClasses class, and fix | Chris Lattner | 2005-03-19 | 1 | -59/+63 |
| | | | | | | | a bug involving SCC's who have multiple members that are part of an EC. llvm-svn: 20678 | ||||
| * | do not bother inlining nullary functions without return values. The only | Chris Lattner | 2005-03-18 | 1 | -0/+3 |
| | | | | | | | | | | effect these calls can have is due to global variables, and these passes all use the globals graph to capture their effect anyway. This speeds up the BU pass very slightly on perlbmk, reducing the number of dsnodes allocated from 98913 to 96423. llvm-svn: 20676 | ||||
| * | make sure to mark nodes in the globals graph incomplete after computing it | Chris Lattner | 2005-03-15 | 1 | -0/+1 |
| | | | | | | | so that external globals (and whatever they point to) are marked incomplete. llvm-svn: 20628 | ||||
| * | fix crashes when we only have a prototype for main. | Chris Lattner | 2005-03-15 | 1 | -1/+1 |
| | | | | | llvm-svn: 20627 | ||||
| * | Finally fix (the right way) the problem where functions like this: | Chris Lattner | 2005-03-15 | 1 | -0/+24 |
| | | | | | | | | | | | | void foo() { G = 1; } would have an empty DSGraph even though G (a global) is directly used in the function. llvm-svn: 20619 | ||||
| * | Start using retnodes_* for iteration. | Chris Lattner | 2005-03-15 | 1 | -12/+9 |
| | | | | | llvm-svn: 20618 | ||||
| * | avoid varialbe name collisions | Chris Lattner | 2005-03-15 | 1 | -2/+3 |
| | | | | | llvm-svn: 20606 | ||||
| * | This mega patch converts us from using Function::a{iterator|begin|end} to | Chris Lattner | 2005-03-15 | 1 | -2/+2 |
| | | | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597 | ||||
| * | rename method, add counterpart | Chris Lattner | 2005-03-15 | 1 | -1/+1 |
| | | | | | llvm-svn: 20593 | ||||
| * | add a method to compute a commonly used mapping. | Chris Lattner | 2005-03-14 | 1 | -5/+3 |
| | | | | | llvm-svn: 20588 | ||||
| * | Make sure to remove incomplete markers before we add to them! :) | Chris Lattner | 2005-03-13 | 1 | -0/+1 |
| | | | | | llvm-svn: 20585 | ||||
| * | After finishing BU analysis, move all global variables from the globals | Chris Lattner | 2005-03-13 | 1 | -3/+24 |
| | | | | | | | graph into main and mark them complete. llvm-svn: 20583 | ||||
| * | ADd support for printing eqgraphs. | Chris Lattner | 2005-03-13 | 1 | -2/+2 |
| | | | | | llvm-svn: 20582 | ||||
| * | remove this from the PA namespace, leaving it in the llvm ns | Chris Lattner | 2005-03-12 | 1 | -8/+7 |
| | | | | | llvm-svn: 20574 | ||||
| * | Move this from the pool allocator project to here, where it logically belongs. | Chris Lattner | 2005-03-12 | 1 | -0/+442 |
| llvm-svn: 20570 | |||||

