summaryrefslogtreecommitdiff
path: root/lib/Transforms
Commit message (Collapse)AuthorAge
...
* Disable (x - (y - z)) => (x + (z - y)) optimization for floating point.Chris Lattner2004-02-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11083 91177308-0d34-0410-b5e6-96231b3b80d8
* Update commentChris Lattner2004-02-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11082 91177308-0d34-0410-b5e6-96231b3b80d8
* Make deadarghaX0r warning louder.Brian Gaeke2004-02-02
| | | | | | | (I just love typing haX0r. haX0r haX0r haX0r.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11079 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable tail duplication in any "hard" cases, where it might break SSA form.Chris Lattner2004-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11052 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the count of the number of instructions removedChris Lattner2004-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11049 91177308-0d34-0410-b5e6-96231b3b80d8
* Hyphenate `target-dependent'Misha Brukman2004-01-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11003 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix InstCombine/2004-01-13-InstCombineInvokePHI.ll, which also fixes lotsChris Lattner2004-01-14
| | | | | | | of C++ programs in Shootout-C++, including lists1 and moments, etc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10845 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up #includesChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10799 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug in previous checkinChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10798 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate use of ConstantHandling and ConstantExpr::getShift interfacesChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10796 91177308-0d34-0410-b5e6-96231b3b80d8
* Add header file I accidentally removed in teh shuffleChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10795 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove use of the ConstantHandling interfacesChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10793 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove use of ConstantExpr::getShiftChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10792 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use ConstantExpr::getShift anymoreChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10791 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove use of ConstantHandlingChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10789 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unneeded #includeChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10788 91177308-0d34-0410-b5e6-96231b3b80d8
* Move llvm::ConstantFoldInstruction from VMCore to here, next to ↵Chris Lattner2004-01-12
| | | | | | ConstantFoldTerminator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10785 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove uses of ConstantHandling itfChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10783 91177308-0d34-0410-b5e6-96231b3b80d8
* Use constantexprs for casts. Eliminate use of the ConstantHandling interfacesChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10779 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix fairly severe bug in my last checking where we treated all unfoldableChris Lattner2004-01-12
| | | | | | | | | constants as being "true" when evaluating branches. This was introduced because we now create constantexprs for the constants instead of failing the fold. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10778 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement minor performance optimization for the getelementptr caseChris Lattner2004-01-12
| | | | | | | | | * Implement SCCP of load instructions, implementing Transforms/SCCP/loadtest.ll This allows us to fold expressions like "foo"[2], even if the pointer is only a conditional constant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10767 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not hack on volatile loads. I'm not sure what the point of a volatile loadChris Lattner2004-01-12
| | | | | | | from constant memory is, but lets not take chances. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10765 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement SCCP/phitest.llChris Lattner2004-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10763 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Transforms/ScalarRepl/phinodepromote.ll, which is an importantChris Lattner2004-01-12
| | | | | | | case that the C/C++ front-end generates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10761 91177308-0d34-0410-b5e6-96231b3b80d8
* Update obsolete commentsChris Lattner2004-01-10
| | | | | | | | | Fix iterator invalidation problems which was causing -mstrip to miss some entries, and read free'd memory. This shrinks the symbol table of 254.gap from 333 to 284 bytes! :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10751 91177308-0d34-0410-b5e6-96231b3b80d8
* Finegrainify namespacificationChris Lattner2004-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dependence on structure index type. s/MT/FTChris Lattner2004-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10726 91177308-0d34-0410-b5e6-96231b3b80d8
* Finegrainify namespacificationChris Lattner2004-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10725 91177308-0d34-0410-b5e6-96231b3b80d8
* Finegrainify namespacificationChris Lattner2004-01-09
| | | | | | | add flags for PR82 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10724 91177308-0d34-0410-b5e6-96231b3b80d8
* Inching towards fixing PR82Chris Lattner2004-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10722 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve encapsulation in the Loop and LoopInfo classes by eliminating theChris Lattner2004-01-08
| | | | | | | | getSubLoops/getTopLevelLoops methods, replacing them with iterator-based accessors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10714 91177308-0d34-0410-b5e6-96231b3b80d8
* Merging constants can cause further room for improvement. Iterate untilChris Lattner2003-12-28
| | | | | | | we converge git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10618 91177308-0d34-0410-b5e6-96231b3b80d8
* rename ClassifyExpression -> ClassifyExprChris Lattner2003-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10592 91177308-0d34-0410-b5e6-96231b3b80d8
* More minor non-functional changes. This now computes the exit condition, thoughChris Lattner2003-12-23
| | | | | | | it doesn't do anything with it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10590 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove extraneous #includeChris Lattner2003-12-23
| | | | | | | finegrainify namespacification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10589 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix memory corruption bug PR193Chris Lattner2003-12-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10586 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't mind me, I'm just refactoring away. This patch makes room for LFTR, butChris Lattner2003-12-22
| | | | | | | contains no functionality changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10583 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement IndVarsSimplify/pointer-indvars.ll, transforming pointerChris Lattner2003-12-22
| | | | | | | arithmetic into "array subscripts" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10580 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR194Chris Lattner2003-12-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10573 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix ADCE/2003-12-19-MergeReturn.llxChris Lattner2003-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10539 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the wierd "Operands" loop, by traversing basicblocks in reverse orderChris Lattner2003-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10536 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement LICM/sink_multiple.ll, by sinking all possible instructions in theChris Lattner2003-12-19
| | | | | | | loop before hoisting any. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10534 91177308-0d34-0410-b5e6-96231b3b80d8
* Generalize a special case to fix PR187Chris Lattner2003-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10531 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor code out into the Utils libraryChris Lattner2003-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10530 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new functionChris Lattner2003-12-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10529 91177308-0d34-0410-b5e6-96231b3b80d8
* Reverted back to previous revision - this was previously mergedJohn Criswell2003-12-18
| | | | | | | according to the CVS log messages. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10517 91177308-0d34-0410-b5e6-96231b3b80d8
* Merged in RELEASE_11.John Criswell2003-12-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10516 91177308-0d34-0410-b5e6-96231b3b80d8
* When we delete instructions from the loop, make sure to remove them from theChris Lattner2003-12-18
| | | | | | | AliasSetTracker as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10507 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR185 & IndVarsSimplify/2003-12-15-Crash.llxChris Lattner2003-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10473 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor code just a little bit, allowing us to implement ↵Chris Lattner2003-12-14
| | | | | | TailCallElim/return_constant.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10467 91177308-0d34-0410-b5e6-96231b3b80d8