summaryrefslogtreecommitdiff
path: root/lib/Transforms
Commit message (Collapse)AuthorAge
...
* Use DominatorTree instead of ETForest.Devang Patel2007-06-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37494 91177308-0d34-0410-b5e6-96231b3b80d8
* Maintain ETNode as part of DomTreeNode.Devang Patel2007-06-07
| | | | | | | This adds redundancy for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37492 91177308-0d34-0410-b5e6-96231b3b80d8
* Formating fixes.Tanya Lattner2007-06-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37491 91177308-0d34-0410-b5e6-96231b3b80d8
* Instruct the inliner to obey the noinline attribute. Add test case.Tanya Lattner2007-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37481 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify this code and fix PR1493, now that llvm-gcc3 is dead.Chris Lattner2007-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37478 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1499.Lauro Ramos Venancio2007-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37472 91177308-0d34-0410-b5e6-96231b3b80d8
* Inform ScalarEvolutions that we're deleting Values.Nick Lewycky2007-06-06
| | | | | | | This is the obviously correct part of the fix for PR1487. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37457 91177308-0d34-0410-b5e6-96231b3b80d8
* Add simple full redundancy elimination.Owen Anderson2007-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37455 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1495 and CodeGen/X86/2007-06-05-LSR-Dominator.llChris Lattner2007-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37454 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid non-trivial loop unswitching while optimizing for size.Devang Patel2007-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37446 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a misunderstanding of the algorithm. Really, we should be tracking valuesOwen Anderson2007-06-05
| | | | | | | | and expression separately. We can get around this, however, by only keeping opaque values in TMP_GEN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37443 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't leak memory.Owen Anderson2007-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37442 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a small bug, some 80 cols violations, and add some more debugging output.Owen Anderson2007-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37436 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow insertelement, extractelement, and shufflevector to be hoisted/sunkDan Gohman2007-06-05
| | | | | | | by LICM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37435 91177308-0d34-0410-b5e6-96231b3b80d8
* Patches by Chuck Rose to unbreak V Studio builds.Bill Wendling2007-06-04
| | | | | | | Thanks Chuck! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37428 91177308-0d34-0410-b5e6-96231b3b80d8
* s/ETNode::getChildren/ETNode::getETNodeChildren/gDevang Patel2007-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37426 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use std::set_difference when the two sets are sorted differently. ComputeOwen Anderson2007-06-04
| | | | | | | | | | the difference manually instead. This allows GVNPRE to produce correct analysis for the example in the GVNPRE paper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37425 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bunch of small bugs, and improve the debugging output significantly.Owen Anderson2007-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37424 91177308-0d34-0410-b5e6-96231b3b80d8
* When rebuilding constant structs, make sure to honor the isPacked bit.Chris Lattner2007-06-04
| | | | | | | This fixes PR1491 and GlobalOpt/2007-06-04-PackedStruct.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37423 91177308-0d34-0410-b5e6-96231b3b80d8
* Make phi_translate correct.Owen Anderson2007-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37418 91177308-0d34-0410-b5e6-96231b3b80d8
* s/DominatorTree::createNewNode/DominatorTree::addNewBlock/gDevang Patel2007-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37415 91177308-0d34-0410-b5e6-96231b3b80d8
* Add basic block level interface to change immediate dominatorDevang Patel2007-06-04
| | | | | | | and create new node. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37414 91177308-0d34-0410-b5e6-96231b3b80d8
* s/llvm::DominatorTreeBase::DomTreeNode/llvm::DomTreeNode/gDevang Patel2007-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37407 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use the custom comparator where it's not necessary.Owen Anderson2007-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37406 91177308-0d34-0410-b5e6-96231b3b80d8
* s/DominatorTreeBase::Node/DominatorTreeBase:DomTreeNode/gDevang Patel2007-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37403 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an unused method.Owen Anderson2007-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37402 91177308-0d34-0410-b5e6-96231b3b80d8
* There's no need to have an Expression class... Value works just as well! ↵Owen Anderson2007-06-03
| | | | | | This simplifies a lot of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37401 91177308-0d34-0410-b5e6-96231b3b80d8
* Insert new instructions in AliasSet.Devang Patel2007-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37390 91177308-0d34-0410-b5e6-96231b3b80d8
* clean() needs to process things in topological order.Owen Anderson2007-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37389 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Expression comparison, which in turn fixes a value numbering error.Owen Anderson2007-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37386 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a topological sort function.Owen Anderson2007-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37376 91177308-0d34-0410-b5e6-96231b3b80d8
* Attempt to fix up phi_translate.Owen Anderson2007-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37366 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Devang Patel2007-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37360 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Transforms/ScalarRepl/2007-05-29-MemcpyPreserve.ll and the secondChris Lattner2007-05-30
| | | | | | | | half of PR1421, by not decimating structs with holes that are the source and destination of a memcpy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37358 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typoOwen Anderson2007-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37350 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-fix a bug, where I was now being too aggressive.Owen Anderson2007-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37348 91177308-0d34-0410-b5e6-96231b3b80d8
* Use proper debugging facilities so other people don't have to look at my ↵Owen Anderson2007-05-29
| | | | | | | | | commented-out debugging lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37347 91177308-0d34-0410-b5e6-96231b3b80d8
* Comment debug code out that I accidentally uncommented last time.Owen Anderson2007-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37346 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a place where I missed using the maximal set. Note that using the maximalOwen Anderson2007-05-29
| | | | | | | set this way is _SLOW_. Somewhere down the line, I'll look at speeding it up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37345 91177308-0d34-0410-b5e6-96231b3b80d8
* Very first part of a GVN-PRE implementation. It currently performs a bunch ↵Owen Anderson2007-05-29
| | | | | | | | | of analysis, and nothing more. It is also quite slow for the moment. However, it should give a sense of what's going on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37343 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1446 by not scalarrepl'ing giant structures.Chris Lattner2007-05-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37326 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor comment cleanups.Dan Gohman2007-05-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37321 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a miscompilation when passing a float through varargsChris Lattner2007-05-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37297 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Transforms/InstCombine/2007-05-18-CastFoldBug.ll, a bug that devastatesChris Lattner2007-05-19
| | | | | | | objc code due to the way the FE lowers objc message sends. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37256 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle negative strides much more optimally. This compiles ↵Chris Lattner2007-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | X86/lsr-negative-stride.ll into: _t: movl 8(%esp), %ecx movl 4(%esp), %eax cmpl %ecx, %eax je LBB1_3 #bb17 LBB1_1: #bb cmpl %ecx, %eax jg LBB1_4 #cond_true LBB1_2: #cond_false subl %eax, %ecx cmpl %ecx, %eax jne LBB1_1 #bb LBB1_3: #bb17 ret LBB1_4: #cond_true subl %ecx, %eax cmpl %ecx, %eax jne LBB1_1 #bb jmp LBB1_3 #bb17 instead of: _t: subl $4, %esp movl %esi, (%esp) movl 12(%esp), %ecx movl 8(%esp), %eax cmpl %ecx, %eax je LBB1_4 #bb17 LBB1_1: #bb.outer movl %ecx, %edx negl %edx LBB1_2: #bb cmpl %ecx, %eax jle LBB1_5 #cond_false LBB1_3: #cond_true addl %edx, %eax cmpl %ecx, %eax jne LBB1_2 #bb LBB1_4: #bb17 movl (%esp), %esi addl $4, %esp ret LBB1_5: #cond_false movl %ecx, %edx subl %eax, %edx movl %eax, %esi addl %esi, %esi cmpl %ecx, %esi je LBB1_4 #bb17 LBB1_6: #cond_false.bb.outer_crit_edge movl %edx, %ecx jmp LBB1_1 #bb.outer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37252 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1431Devang Patel2007-05-17
| | | | | | | Test case at Transformations/SCCP/2007-05-16-InvokeCrash.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37185 91177308-0d34-0410-b5e6-96231b3b80d8
* selects can also reach hereChris Lattner2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37081 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Transforms/InstCombine/2007-05-14-Crash.llChris Lattner2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37057 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct a few comments.Dan Gohman2007-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37034 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Transforms/GlobalOpt/2007-05-13-Crash.llChris Lattner2007-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37020 91177308-0d34-0410-b5e6-96231b3b80d8