summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopUnroll.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Don't unroll loops whose header block's address is taken.Chris Lattner2011-02-181-2/+10
| | | | | | | | | | | | | | | | | This is part of a futile attempt to not "break" bizzaro code like this: l1: printf("l1: %p\n", &&l1); ++x; if( x < 3 ) goto l1; Previously we'd fold &&l1 to 1, which is fine per our semantics but not helpful to the user. llvm-svn: 125827
* random cleanupsChris Lattner2011-01-111-2/+2
| | | | llvm-svn: 123221
* Remove all uses of the "ugly" method BranchInst::setUnconditionalDest().Jay Foad2011-01-071-1/+3
| | | | llvm-svn: 123025
* Replace calls to ConstantFoldInstruction with calls to SimplifyInstructionDuncan Sands2010-11-231-5/+6
| | | | | | | in two places that are really interested in simplified instructions, not constants. llvm-svn: 120044
* Be more consistent in using ValueToValueMapTy.Rafael Espindola2010-10-131-4/+3
| | | | llvm-svn: 116387
* Preserve ScalarEvolution in the loop unroller.Dan Gohman2010-07-261-0/+6
| | | | llvm-svn: 109412
* Use ValueMap instead of DenseMap.Devang Patel2010-06-241-3/+3
| | | | | | The ValueMapper used by various cloning utility maps MDNodes also. llvm-svn: 106706
* Cosmetic change.Devang Patel2010-06-231-9/+9
| | | | | | Do not use "ValueMap" as a name for a local variable or an argument. llvm-svn: 106698
* Rename ValueMapTy as ValueToValueMapTy to clearly indicate that this has no ↵Devang Patel2010-04-201-4/+4
| | | | | | replationship with ADT/ValueMap. llvm-svn: 101950
* Add a DominatorTree argument to isLCSSA so that it doesn't have toDan Gohman2010-03-101-6/+0
| | | | | | | compute a set of reachable blocks for itself each time it is called, which is fairly frequently. llvm-svn: 98179
* Don't bother with sprintf, just pass the Twine through.Benjamin Kramer2010-01-271-5/+1
| | | | llvm-svn: 94684
* Change errs() to dbgs().David Greene2010-01-051-11/+11
| | | | llvm-svn: 92600
* Add Loop contains utility methods for testing whether a loopDan Gohman2009-12-181-4/+4
| | | | | | | | contains another loop, or an instruction. The loop form is substantially more efficient on large loops than the typical code it replaces. llvm-svn: 91654
* remove a bunch of extraneous LLVMContext argumentsChris Lattner2009-11-061-2/+1
| | | | | | from various APIs, addressing PR5325. llvm-svn: 86231
* Teach LoopUnroll how to bail if LoopSimplify can't give it what it needs.Dan Gohman2009-11-051-1/+12
| | | | llvm-svn: 86164
* Revert r85667. LoopUnroll currently can't call utility functions whichDan Gohman2009-10-311-1/+47
| | | | | | | auto-update the DominatorTree because it doesn't keep the DominatorTree current while it works. llvm-svn: 85670
* Merge the enhancements from LoopUnroll's FoldBlockIntoPredecessor intoDan Gohman2009-10-311-47/+1
| | | | | | | MergeBlockIntoPredecessor. This makes SimplifyCFG slightly more aggressive, and makes it unnecessary for LoopUnroll to have its own copy of this code. llvm-svn: 85667
* Simplify this code.Dan Gohman2009-10-311-2/+2
| | | | llvm-svn: 85662
* Rename UnrollLoop.cpp to LoopUnroll.cpp, and LoopUnroll.cpp toDan Gohman2009-10-311-0/+372
LoopUnrollPass.cpp, for consistency with other passes which are similarly split. llvm-svn: 85659
OpenPOWER on IntegriCloud