summaryrefslogtreecommitdiff
path: root/lib/Transforms
Commit message (Collapse)AuthorAge
...
* Start using a set representation that remembers the set of value numbers ↵Owen Anderson2007-07-09
| | | | | | | | | | represented in the set. For the moment, this results in a slight performance decrease, but it lays the groundwork for future improvements. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38439 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an error where ANTIC_OUT was ending up with more than one expression ofOwen Anderson2007-07-07
| | | | | | | the same value number. This fixes an infinite loop on 444.namd. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37967 91177308-0d34-0410-b5e6-96231b3b80d8
* Back out Devang's fix for PR1320 because it causes PR1542.Nick Lewycky2007-07-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37966 91177308-0d34-0410-b5e6-96231b3b80d8
* These rountines are now available as part of basic block utilities.Devang Patel2007-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37955 91177308-0d34-0410-b5e6-96231b3b80d8
* Request DominanceFrontiner in advance.Devang Patel2007-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37954 91177308-0d34-0410-b5e6-96231b3b80d8
* Preserve various analysis info.Devang Patel2007-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37953 91177308-0d34-0410-b5e6-96231b3b80d8
* Add SplitEdge and SplitBlock utility routines. Devang Patel2007-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37952 91177308-0d34-0410-b5e6-96231b3b80d8
* Be more aggressive in the heuristic. This mostly exposes more opportunitiesOwen Anderson2007-07-06
| | | | | | | for the GVN part of GVNPRE to apply. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37951 91177308-0d34-0410-b5e6-96231b3b80d8
* Achieve what the incorrect test was trying to do by simply requiring that allOwen Anderson2007-07-06
| | | | | | | critical edges be split before we begin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37949 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an incorrect check.Owen Anderson2007-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37948 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct a typo.Zhou Sheng2007-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37936 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bunch of issues found in a testcase from 400.perlbench.Owen Anderson2007-07-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37929 91177308-0d34-0410-b5e6-96231b3b80d8
* Break "variable canonicalization" out of InequalityGraph and into its own classNick Lewycky2007-07-05
| | | | | | | "ValueNumbering". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37881 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix another bug, this time in PREing select instructions.Owen Anderson2007-07-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37878 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo that was killing GVNPRE of select instructions.Owen Anderson2007-07-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37871 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an error in phi translation of GEPs that was causing failures.Owen Anderson2007-07-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37868 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for performing GVNPRE on GEP instructions.Owen Anderson2007-07-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37862 91177308-0d34-0410-b5e6-96231b3b80d8
* Add functionality to value number GEP instructions. This also provides the ↵Owen Anderson2007-07-03
| | | | | | | | | infrastructure that will be used for function calls. NOTE: This does not yet do any transformation of GEPs or function calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37860 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the unary operator case a bit faster, since casts are the only kind of ↵Owen Anderson2007-07-03
| | | | | | unary operation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37857 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for performing GVNPRE on cast instructions, and add a testcase ↵Owen Anderson2007-07-03
| | | | | | for this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37856 91177308-0d34-0410-b5e6-96231b3b80d8
* Preserve DominanceFrontier.Devang Patel2007-06-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37820 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix reference to iterator invalidated by an erase operation. UncoveredDavid Greene2007-06-29
| | | | | | | by _GLIBCXX_DEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37796 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not filter loop if candidate branch is in loop header.Devang Patel2007-06-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37792 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for value numbering (but not actually optimizing) cast instructions.Owen Anderson2007-06-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37789 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a type field to expressions in preparation for performing GVNPRE on casts.Owen Anderson2007-06-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37788 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for performing GVNPRE on select instructions. This fixes ↵Owen Anderson2007-06-28
| | | | | | test/Transforms/GVNPRE/select.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37783 91177308-0d34-0410-b5e6-96231b3b80d8
* - Undo previous check and allow loop switch for condtion that is not insideDevang Patel2007-06-28
| | | | | | | | | loop. - Avoid loop unswich for loop header branch. - While cloning dominators fix typo and handle self dominating blocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37772 91177308-0d34-0410-b5e6-96231b3b80d8
* Update LoopUnswitch pass to preserve DomiantorTree.Devang Patel2007-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37771 91177308-0d34-0410-b5e6-96231b3b80d8
* If a condition is not inside a loop then the condition is suitableDevang Patel2007-06-28
| | | | | | | to loop unswitch candidate for the loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37770 91177308-0d34-0410-b5e6-96231b3b80d8
* Make many sets a much more reasonable size. This decreases the time to optimizeOwen Anderson2007-06-28
| | | | | | | Anton's testcase from 35.5s to 34.7s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37769 91177308-0d34-0410-b5e6-96231b3b80d8
* Use cached information that has already been computed to make clean() ↵Owen Anderson2007-06-27
| | | | | | simpler and faster. This is a small speedup on most cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37761 91177308-0d34-0410-b5e6-96231b3b80d8
* Fold a lot of code into two cases: binary instructions and ternary instructions.Owen Anderson2007-06-27
| | | | | | | This saves many lines of code duplication. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37759 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug.Zhou Sheng2007-06-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37751 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for performing GVNPRE on the three vector-specific operations.Owen Anderson2007-06-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37745 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Correct some comments and clean up some dead code.Owen Anderson2007-06-26
| | | | | | | | 2. When calculating ANTIC_IN, only iterate the changed blocks. For most average inputs this is a small speedup, but for cases with unusual CFGs, this can be a significant win. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37742 91177308-0d34-0410-b5e6-96231b3b80d8
* fix Transforms/Inline/2007-06-25-WeakInline.ll by not inlining functionsChris Lattner2007-06-25
| | | | | | | with weak linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37723 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the built-in postorder iterators rather than computing a postorder walk ↵Owen Anderson2007-06-25
| | | | | | by hand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37721 91177308-0d34-0410-b5e6-96231b3b80d8
* 1) Fix an issue with non-deterministic iteration order in phi_translateOwen Anderson2007-06-25
| | | | | | | | | | | | 2) Remove some maximal-set computing code that is no longer used. 3) Use a post-order CFG traversal to compute ANTIC_IN instead of a postdom traversal. This causes the ANTIC_IN calculation to converge much faster. Thanks to Daniel Berlin for suggesting this. With this patch, the time to optimize 403.gcc decreased from 17.5s to 7.5s, and Anton's huge testcase decreased from 62 minutes to 38 seconds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37714 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix value ranges.Nick Lewycky2007-06-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37713 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a silly mistake that was causing failures.Owen Anderson2007-06-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37712 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove tabs.Nick Lewycky2007-06-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37710 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove use of ETForest. Also cleaned up issues around unreachable basicNick Lewycky2007-06-24
| | | | | | | blocks, and optimizing within one basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37709 91177308-0d34-0410-b5e6-96231b3b80d8
* Rework topo_sort so eliminate some behavior that scaled terribly. This ↵Owen Anderson2007-06-22
| | | | | | | | | reduces the time to optimize 403.gcc from 18.2s to 17.5s, and has an even larger effect on larger testcases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37708 91177308-0d34-0410-b5e6-96231b3b80d8
* Perform fewer set insertions while calculating ANTIC_IN. This reduces the ↵Owen Anderson2007-06-22
| | | | | | amount of time to optimize 403.gcc from 21.9s to 18.2s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37707 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some code that I was using for collecting performance information ↵Owen Anderson2007-06-22
| | | | | | that should not have been committed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37706 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid excessive calls to find_leader when calculating AVAIL_OUT. This ↵Owen Anderson2007-06-22
| | | | | | reduces the time to optimize 403.gcc from 23.5s to 21.9s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37702 91177308-0d34-0410-b5e6-96231b3b80d8
* Reserve space in vectors before topologically sorting into them. This ↵Owen Anderson2007-06-22
| | | | | | improves the time to optimize 403.gcc from 28s to 23.5s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37699 91177308-0d34-0410-b5e6-96231b3b80d8
* Make a bunch of optimizations for compile time to GVNPRE, including smarter ↵Owen Anderson2007-06-22
| | | | | | set unions, deferring blocks rather than computing maximal sets, and smarter use of sets. With these enhancements, the time to optimize 273.perlbmk goes from 5.3s to 2.7s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37698 91177308-0d34-0410-b5e6-96231b3b80d8
* Significantly improve the documentation of the instcombine divide/compareChris Lattner2007-06-21
| | | | | | | | | transformation. Also, keep track of which end of the integer interval overflows occur on. This fixes Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll and rdar://5278853, a miscompilation of perl. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37692 91177308-0d34-0410-b5e6-96231b3b80d8
* Change lots of sets from std::set to SmallPtrSet. This reduces the time ↵Owen Anderson2007-06-21
| | | | | | required to optimize 253.perlbmk from 10.9s to 5.3s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37690 91177308-0d34-0410-b5e6-96231b3b80d8