summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use simpler test to filter loops.Devang Patel2007-08-271-14/+3
| | | | llvm-svn: 41516
* Move exit condition and exit branch from exiting block into loop header and ↵Devang Patel2007-08-251-0/+155
| | | | | | dominator info. This avoid execution of dead iteration. Loop is already filter in the beginning such that this change is safe. llvm-svn: 41394
* Constant split values needs upper bound and lower bound check, just like any ↵Devang Patel2007-08-251-6/+0
| | | | | | other split value. llvm-svn: 41389
* While calculating upper loop bound for first loop and lower loop bound for ↵Devang Patel2007-08-251-36/+231
| | | | | | second loop, take care of edge cases. llvm-svn: 41387
* Fix regression that I caused yesterday night while adding logic to select ↵Devang Patel2007-08-241-2/+2
| | | | | | appropriate split condition branch. llvm-svn: 41365
* It is not safe to execute split condition's true branch first all the time. ↵Devang Patel2007-08-241-5/+35
| | | | | | | | If split condition predicate is GT or GE then execute false branch first. llvm-svn: 41358
* Reject ICMP_NE as index split condition.Devang Patel2007-08-241-0/+3
| | | | llvm-svn: 41357
* Tightenup loop filter.Devang Patel2007-08-241-2/+22
| | | | llvm-svn: 41356
* Remove incomplete cost analysis.Devang Patel2007-08-241-40/+3
| | | | llvm-svn: 41354
* Remove dead code.Devang Patel2007-08-221-5/+0
| | | | llvm-svn: 41295
* Fix typo.Devang Patel2007-08-221-1/+1
| | | | llvm-svn: 41292
* Cosmetic changeDevang Patel2007-08-221-84/+102
| | | | | | | "True Loop" and "False Loop" naming terminology to refer two loops after loop cloning is confusing. Instead just use A_Loop and B_Loop. llvm-svn: 41287
* Refactor loop condition check in a separate function.Devang Patel2007-08-221-17/+34
| | | | llvm-svn: 41282
* Fix thinko.Devang Patel2007-08-221-3/+3
| | | | | | | Starting value of second loop's induction variable can not be lower then starting value of original loop's induction variable. llvm-svn: 41280
* Rename bunch of variables.Devang Patel2007-08-211-72/+79
| | | | llvm-svn: 41250
* Preserve LCSSA.Devang Patel2007-08-211-1/+15
| | | | llvm-svn: 41246
* s/ExitBlock/ExitingBlock/gDevang Patel2007-08-201-26/+27
| | | | llvm-svn: 41204
* Replace indunction variable with split value in loop body.Devang Patel2007-08-201-1/+5
| | | | | | This fixes art miscompile. llvm-svn: 41195
* Do not split loops rejected by processOneIterationLoop().Devang Patel2007-08-201-5/+11
| | | | llvm-svn: 41194
* Avoid spliting loops where two split condition branches are not independent.Devang Patel2007-08-181-1/+11
| | | | llvm-svn: 41148
* When one branch of condition is eliminated then head of the otherDevang Patel2007-08-171-21/+42
| | | | | | branch is not necessary immediate dominators of merge blcok in all cases. llvm-svn: 41144
* Dominance frontier is now required.Devang Patel2007-08-151-1/+1
| | | | llvm-svn: 41096
* Cleanup removeBlocks. Devang Patel2007-08-151-56/+70
| | | | | | | Use dominance frontier to fixup incoming edges of successor blocks not domianted by DeadBB. Use df_iterator to walk and delete basic blocks dominated by DeadBB. llvm-svn: 41095
* Remove unneeded header file.Reid Spencer2007-08-151-1/+0
| | | | llvm-svn: 41094
* Avoid triangle loops.Devang Patel2007-08-151-4/+16
| | | | llvm-svn: 41093
* Avoid nested loops at the moment.Devang Patel2007-08-141-0/+4
| | | | llvm-svn: 41090
* Fix dominance frontier update while removing blocks.Devang Patel2007-08-141-7/+30
| | | | llvm-svn: 41082
* Handle last value assignments.Devang Patel2007-08-141-14/+42
| | | | llvm-svn: 41063
* StartValue is already calculated.Devang Patel2007-08-141-1/+0
| | | | llvm-svn: 41062
* Preserve simple analysis.Devang Patel2007-08-131-4/+5
| | | | llvm-svn: 41054
* Preserve dominator info.Devang Patel2007-08-131-32/+46
| | | | llvm-svn: 41053
* Split loops and do CFG cleanup.Devang Patel2007-08-121-24/+106
| | | | llvm-svn: 41029
* Remove unused variables.Reid Spencer2007-08-121-2/+2
| | | | llvm-svn: 41028
* Clone loop.Devang Patel2007-08-101-5/+25
| | | | llvm-svn: 40998
* Remove unncessary duplication.Devang Patel2007-08-101-14/+1
| | | | llvm-svn: 40979
* Calculate exit and start value of true loop and false loop respectively.Devang Patel2007-08-101-2/+28
| | | | llvm-svn: 40978
* ExitCondition and Induction variable are loop constraints Devang Patel2007-08-101-71/+145
| | | | | | not split condition constraints. llvm-svn: 40977
* Traverse loop blocks' terminators to find split candidates.Devang Patel2007-08-091-48/+106
| | | | llvm-svn: 40960
* Add cost analysis.Devang Patel2007-08-081-11/+41
| | | | llvm-svn: 40952
* Preserve dom info while processing one iteration loop.Devang Patel2007-08-081-0/+17
| | | | llvm-svn: 40947
* Clear split info.Devang Patel2007-08-081-0/+11
| | | | llvm-svn: 40944
* Handle multiple split conditions.Devang Patel2007-08-081-60/+93
| | | | llvm-svn: 40941
* Embrace patch review feedback.Devang Patel2007-08-081-23/+23
| | | | llvm-svn: 40915
* Fix new compare instruction's signness. Caught by Chris during review.Devang Patel2007-08-071-5/+7
| | | | llvm-svn: 40912
* Use eraseFromParent().Devang Patel2007-08-071-4/+2
| | | | llvm-svn: 40903
* Begin loop index split pass.Devang Patel2007-08-071-0/+384
llvm-svn: 40883
OpenPOWER on IntegriCloud