Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make sure to add global variable initializers to the Globals graph! | Chris Lattner | 2003-09-20 | 1 | -15/+69 | |
| | | | | llvm-svn: 8636 | |||||
* | Add special case handling for calloc and realloc | Chris Lattner | 2003-09-20 | 1 | -0/+16 | |
| | | | | llvm-svn: 8630 | |||||
* | Switch from using CallInst's to represent call sites to using the LLVM | Chris Lattner | 2003-09-20 | 1 | -15/+23 | |
| | | | | | | | CallSite class. Now we can represent function calls by invoke instructions too! llvm-svn: 8629 | |||||
* | Fixed spelling and grammar. | Misha Brukman | 2003-09-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 8478 | |||||
* | DEBUG got moved to Support/Debug.h | Chris Lattner | 2003-08-01 | 1 | -2/+2 | |
| | | | | llvm-svn: 7492 | |||||
* | Remove dead Nodes list | Chris Lattner | 2003-07-02 | 1 | -6/+4 | |
| | | | | llvm-svn: 7065 | |||||
* | Make local pass print out its progress | Chris Lattner | 2003-07-02 | 1 | -0/+3 | |
| | | | | llvm-svn: 7058 | |||||
* | Do not delete the same graph multiple times when freeing memory if graphs ↵ | Chris Lattner | 2003-06-30 | 1 | -3/+6 | |
| | | | | | | are sharing llvm-svn: 6998 | |||||
* | Move usages of explicit hash_* datastructures to use typedefs | Chris Lattner | 2003-06-30 | 1 | -4/+3 | |
| | | | | llvm-svn: 6996 | |||||
* | Revamp DSGraphs so that they can support multiple functions in the same | Chris Lattner | 2003-06-30 | 1 | -9/+10 | |
| | | | | | | DSGraph at one time llvm-svn: 6994 | |||||
* | * Changes to make NodeType be private to DSNode. | Chris Lattner | 2003-06-19 | 1 | -18/+24 | |
| | | | | | | | | * Add new MultiObject flag to DSNode which keeps track of whether or not multiple objects have been merged into the node, allowing must-alias info to be tracked. llvm-svn: 6794 | |||||
* | Nodes get forwarded when they are collapsed currently. | Chris Lattner | 2003-06-16 | 1 | -1/+4 | |
| | | | | llvm-svn: 6696 | |||||
* | Don't apply type information to load instructions if it will cause collapsing | Chris Lattner | 2003-03-03 | 1 | -1/+1 | |
| | | | | llvm-svn: 5684 | |||||
* | Don't put integer pointers (longs) into the scalar map. | Chris Lattner | 2003-02-14 | 1 | -0/+10 | |
| | | | | | | This speeds stuff up by 10% on some tests, woot! llvm-svn: 5564 | |||||
* | Implement a "union-findy" version of DS-Analysis, which eliminates the | Chris Lattner | 2003-02-11 | 1 | -2/+1 | |
| | | | | | | Referrers list on DSNodes. llvm-svn: 5536 | |||||
* | Don't insert null entries into the scalar map for constexpr (cast null to Ty) | Chris Lattner | 2003-02-09 | 1 | -5/+11 | |
| | | | | llvm-svn: 5523 | |||||
* | Add a flag which effectively disables field sensitivity | Chris Lattner | 2003-02-08 | 1 | -0/+5 | |
| | | | | llvm-svn: 5506 | |||||
* | Implement optimization for direct function call case. This dramatically | Chris Lattner | 2003-02-05 | 1 | -2/+14 | |
| | | | | | | | reduces the number of function nodes created and speeds up analysis by about 10% overall. llvm-svn: 5495 | |||||
* | Fix a huge bug with handling non-pointer instructions | Chris Lattner | 2003-02-04 | 1 | -1/+16 | |
| | | | | llvm-svn: 5491 | |||||
* | Change DSGraph stuff to use hash_(set|map) instead of std::(set|map) | Chris Lattner | 2003-02-01 | 1 | -4/+4 | |
| | | | | | | This change provides a small (3%) but consistent speedup llvm-svn: 5460 | |||||
* | Remove using declarations | Chris Lattner | 2003-02-01 | 1 | -9/+6 | |
| | | | | llvm-svn: 5456 | |||||
* | free instructions mark their operands as being heap nodes. | Chris Lattner | 2003-01-28 | 1 | -1/+2 | |
| | | | | llvm-svn: 5425 | |||||
* | * Eliminate boolean arguments in favor of using enums | Chris Lattner | 2003-01-23 | 1 | -2/+2 | |
| | | | | | | * T-D pass now eliminates unreachable globals llvm-svn: 5419 | |||||
* | Slight efficiency improvement | Chris Lattner | 2003-01-23 | 1 | -4/+1 | |
| | | | | llvm-svn: 5418 | |||||
* | Two bug fixes: | Vikram S. Adve | 2002-12-06 | 1 | -13/+22 | |
| | | | | | | | | (1) Make entries for Constant values in the ScalarMap. (2) Set MOD bit for the node pointed to by the argument of a free instruction. llvm-svn: 4948 | |||||
* | Add peak memory usage support | Chris Lattner | 2002-11-18 | 1 | -1/+4 | |
| | | | | llvm-svn: 4748 | |||||
* | Initialize PrintAuxCalls member | Chris Lattner | 2002-11-10 | 1 | -0/+1 | |
| | | | | llvm-svn: 4677 | |||||
* | eliminate the ability to remove global nodes from deadNodeElminate... for now. | Chris Lattner | 2002-11-09 | 1 | -1/+1 | |
| | | | | | | | This slows stuff down a bit, but it should get much better before it gets any worse. llvm-svn: 4666 | |||||
* | Add globals graphs to all three passes | Chris Lattner | 2002-11-09 | 1 | -10/+10 | |
| | | | | llvm-svn: 4663 | |||||
* | Clean up DSGraph::removeDeadNodes interface | Chris Lattner | 2002-11-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 4660 | |||||
* | Make removeTriviallyDeadNodes a private interface of DSGraph | Chris Lattner | 2002-11-09 | 1 | -3/+3 | |
| | | | | llvm-svn: 4659 | |||||
* | Don't put constants into the scalar map! | Chris Lattner | 2002-11-09 | 1 | -9/+13 | |
| | | | | llvm-svn: 4657 | |||||
* | Add initial support for a globals graph | Chris Lattner | 2002-11-09 | 1 | -2/+6 | |
| | | | | llvm-svn: 4656 | |||||
* | #include Datastructure.h first | Chris Lattner | 2002-11-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 4654 | |||||
* | * actually handle constants (especially constantexprs) correctly. | Chris Lattner | 2002-11-08 | 1 | -11/+28 | |
| | | | | | | | - This seems to dramatically improve many benchmarks, only slowing down gzip significantly. llvm-svn: 4621 | |||||
* | Rename DataStructureAnalysis namespace to DS | Chris Lattner | 2002-11-07 | 1 | -4/+2 | |
| | | | | llvm-svn: 4596 | |||||
* | Dramatically simplify internal DSNode representation, get implementation | Chris Lattner | 2002-11-06 | 1 | -13/+14 | |
| | | | | | | | *FULLY OPERATIONAL* and safe. We are now capable of completely analyzing at LEAST the Olden benchmarks + 181.mcf llvm-svn: 4562 | |||||
* | Rename ValueMap to ScalarMap | Chris Lattner | 2002-11-03 | 1 | -9/+9 | |
| | | | | llvm-svn: 4516 | |||||
* | Rename NewNode flag to HeapNode | Chris Lattner | 2002-11-03 | 1 | -1/+1 | |
| | | | | llvm-svn: 4515 | |||||
* | Implement the "unknown flag" which mainly consists of aligning printing code | Chris Lattner | 2002-11-02 | 1 | -5/+10 | |
| | | | | llvm-svn: 4490 | |||||
* | Stop representing scalars as explicit nodes in the graph. Now the only | Chris Lattner | 2002-11-02 | 1 | -113/+75 | |
| | | | | | | | | | nodes in the graph are memory objects, which is very nice. This also greatly reduces the size and memory footprint for DSGraphs. For example, the local DSGraph for llu went from 65 to 13 nodes with this change. As a side bonus, dot seems to lay out the graphs slightly better too. :) llvm-svn: 4488 | |||||
* | Remove dead code | Chris Lattner | 2002-10-31 | 1 | -31/+12 | |
| | | | | llvm-svn: 4467 | |||||
* | This fixes all kinds of problems with array handling. There are still bugs to | Chris Lattner | 2002-10-31 | 1 | -31/+80 | |
| | | | | | | | | | | | | | | | | be fixed, but we are getting much closer now. * Make DSNode::TypeRec a full fledged DSTypeRec type. * Add methods used to update and access the typerecords elements * Add methods to query if and to cause a node to be completely folded * DSGraph construction doesn't use the allocation type for anything at all, now nodes get their type information based on how they are used. * Fixed a bug with global value handling introduced in the last checkin * GEP support is now much better, arrays are handled correctly. The array flag is now updated in type records. There are still cases that are not handled yet (we do not detect pessimizations), but getting much closer. llvm-svn: 4465 | |||||
* | Don't create a new node for every reference to a global. This caused a huge | Chris Lattner | 2002-10-21 | 1 | -5/+2 | |
| | | | | | | | node explosion that doesn't help anything at all. In previous versions of the representation this DID help, but not anymore. llvm-svn: 4249 | |||||
* | - Make DSCallSite not inherit from std::vector. Renamed methods slightly. | Chris Lattner | 2002-10-21 | 1 | -14/+17 | |
| | | | | | | | | Make copy ctor have two versions to avoid dealing with conditional template argument. DSCallSite ctor now takes all arguments instead of taking one and being populated later. llvm-svn: 4240 | |||||
* | Avoid extra copy | Chris Lattner | 2002-10-20 | 1 | -2/+1 | |
| | | | | llvm-svn: 4239 | |||||
* | Remove spurious caller pointer in DSCallSite. | Vikram S. Adve | 2002-10-20 | 1 | -1/+1 | |
| | | | | | | Also add functions to access pointer argument nodes cleanly. llvm-svn: 4235 | |||||
* | Added a first-class representation for each call site that can be | Vikram S. Adve | 2002-10-20 | 1 | -4/+4 | |
| | | | | | | | | | used in the DS graphs. Essentially, what was vector<DSNodeHandle> before is now a DSCallSite with the same vector, plus pointers to the CallInst and the caller Function. The special-purpose class BUDataStructure::CallSite is no longer needed. llvm-svn: 4228 | |||||
* | Convert typerec to be a structure instead of a pair | Chris Lattner | 2002-10-18 | 1 | -1/+0 | |
| | | | | llvm-svn: 4226 | |||||
* | Calculate mod/ref info | Chris Lattner | 2002-10-17 | 1 | -0/+3 | |
| | | | | llvm-svn: 4223 |