[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-06-28 Thread David Greene
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.105 -> 1.106 --- Log message: Fix reference to iterator invalidated by an erase operation. Uncovered by _GLIBCXX_DEBUG. --- Diffs of the changes: (+4 -3) LoopSimplify.cpp |7 --- 1 files changed, 4 inserti

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-06-11 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.103 -> 1.104 --- Log message: Add and use DominatorTreeBase::findNearestCommonDominator(). --- Diffs of the changes: (+1 -1) LoopSimplify.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-06-11 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.102 -> 1.103 --- Log message: Simplify. --- Diffs of the changes: (+2 -4) LoopSimplify.cpp |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp diff -u

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-06-11 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.101 -> 1.102 --- Log message: simplify --- Diffs of the changes: (+3 -4) LoopSimplify.cpp |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp diff -u

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-06-11 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.100 -> 1.101 --- Log message: Simplify. Dominator Tree is required so always available. --- Diffs of the changes: (+26 -31) LoopSimplify.cpp | 57 +-- 1 files

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-06-07 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.99 -> 1.100 --- Log message: Update LoopSimplify to require and preserve DominatorTree only. Now LoopSimplify does not require nor preserve ETForest. --- Diffs of the changes: (+26 -32) LoopSimplify.cpp | 58

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-20 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.91 -> 1.92 --- Log message: Avoid recursion. --- Diffs of the changes: (+13 -6) LoopSimplify.cpp | 19 +-- 1 files changed, 13 insertions(+), 6 deletions(-) Index: llvm/lib/Transforms/Utils/Loop

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-09 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.89 -> 1.90 --- Log message: Re-constify things that don't break the build. Last patch in this series, I promise. --- Diffs of the changes: (+4 -2) LoopSimplify.cpp |6 -- 1 files changed, 4 insertions(+),

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-09 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.88 -> 1.89 --- Log message: Unconst-ify stuff that broke the build. --- Diffs of the changes: (+1 -1) LoopSimplify.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/Utils/Lo

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-09 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.87 -> 1.88 --- Log message: Const-ify some parameters, and some cosmetic cleanups. No functionality change. --- Diffs of the changes: (+4 -3) LoopSimplify.cpp |7 --- 1 files changed, 4 insertions(+), 3 d

Re: [llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-09 Thread Chris Lattner
> /// FindPHIToPartitionLoops - The first part of loop-nestification > is to find a > /// PHI node that tells us how to partition the loops. > static PHINode *FindPHIToPartitionLoops(Loop *L, ETForest *EF, > - AliasAnalysis *AA) { > + AliasAnalysis

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-09 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.86 -> 1.87 --- Log message: Tabs -> Spaces --- Diffs of the changes: (+36 -36) LoopSimplify.cpp | 72 +++ 1 files changed, 36 insertions(+), 36 deletions(-) I

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-09 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.85 -> 1.86 --- Log message: Improve some _slow_ behavior introduced in my patches the last few days. --- Diffs of the changes: (+42 -42) LoopSimplify.cpp | 84 +++--

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-08 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.84 -> 1.85 --- Log message: Cleanup some from my DomSet-removal changes. Add a new isReachableFromEntry test to ETForest to factor a common test out of code. --- Diffs of the changes: (+4 -4) LoopSimplify.cpp |

Re: [llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-08 Thread Chris Lattner
>// Can we eliminate this phi node now? >if (Value *V = PN->hasConstantValue(true)) { > -if (!isa(V) || > -getAnalysis().dominates(cast > (V), PN)) { > +Instruction *I = dyn_cast(V); > +if (!I || (I->getParent() != NewBB && > +

Re: [llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-08 Thread Chris Lattner
> @@ -727,13 +700,14 @@ >{ > BasicBlock *OnePred = PredBlocks[0]; > unsigned i, e = PredBlocks.size(); > -for (i = 1; !DS.isReachable(OnePred); ++i) { > +for (i = 1; !ETF.dominates(&OnePred->getParent()->getEntryBlock > (), OnePred); ++i) { This line looks long. Can you jus

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-07 Thread Nick Lewycky
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.83 -> 1.84 --- Log message: Remove DominatorSet usage from LoopSimplify. Patch from Owen Anderson. --- Diffs of the changes: (+54 -89) LoopSimplify.cpp | 143 ---

Re: [llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-07 Thread Jeff Cohen
Still have two regressions: Running /usr/home/jeffc/llvm/test/Other/dg.exp ... FAIL: /usr/home/jeffc/llvm/test/Other/2002-01-31-PostDomSet-2.ll: child process exited abnormally opt: Unknown command line argument '-postdomset'. Try: 'opt --help' FAIL: /usr/home/jeffc/llvm/test/Other/2002-01-31-Po

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-07 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.82 -> 1.83 --- Log message: Add DomSet back, and revert the changes to LoopSimplify. Apparently the ETForest updating mechanisms don't work as I thought they did. These changes will be reapplied once the issue is wor

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-06 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.81 -> 1.82 --- Log message: Completely purge DomSet from LoopSimplify. This is part of the continuing work on PR1171: http://llvm.org/PR1171 . --- Diffs of the changes: (+46 -82) LoopSimplify.cpp | 128 +

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-04-06 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.80 -> 1.81 --- Log message: Expunge a bunch of uses of DomSet from LoopSimplify. Many more remain. This is the beginning of work for PR1171: http://llvm.org/PR1171 . --- Diffs of the changes: (+2 -3) LoopSimplify

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2007-03-20 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.79 -> 1.80 --- Log message: LoopSimplify::FindPHIToPartitionLoops() Use ETForest instead of DominatorSet. --- Diffs of the changes: (+6 -4) LoopSimplify.cpp | 10 ++ 1 files changed, 6 insertions(+), 4 de

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-09-23 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.75 -> 1.76 --- Log message: Be far more careful when splitting a loop header, either to form a preheader or when splitting loops with a common header into multiple loops. In particular the old code would always insert

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-09-23 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.74 -> 1.75 --- Log message: Teach UpdateDomInfoForRevectoredPreds to handle revectored preds that are not reachable, making it general purpose enough for use by InsertPreheaderForLoop. Eliminate custom dominfo updating

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-08-11 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.71 -> 1.72 --- Log message: Don't attempt to split subloops out of a loop with a huge number of backedges. Not only will this take huge amounts of compile time, the resultant loop nests won't be useful for optimization.

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-08-11 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.70 -> 1.71 --- Log message: Reimplement the loopsimplify code which deletes edges from unreachable blocks that target loop blocks. Before, the code was run once per loop, and depended on the number of predecessors ea

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-14 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.68 -> 1.69 --- Log message: Canonicalize inner loops before outer loops. Inner loop canonicalization can provide work for the outer loop to canonicalize. This fixes a case that breaks unswitching. --- Diffs of the

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-14 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.67 -> 1.68 --- Log message: When splitting exit edges to canonicalize loops, make sure to put the new block in the appropriate loop nest. Third time is the charm, right? --- Diffs of the changes: (+20 -18) LoopSim

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-11 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.66 -> 1.67 --- Log message: Revert my last patch. It too breaks stuff --- Diffs of the changes: (+6 -12) LoopSimplify.cpp | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) Index: llvm/

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-11 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.65 -> 1.66 --- Log message: Fix for my previously reverted patch --- Diffs of the changes: (+12 -6) LoopSimplify.cpp | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) Index: llvm/lib/Tr

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-11 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.64 -> 1.65 --- Log message: revert my previous change, it exposed other problems. --- Diffs of the changes: (+1 -1) LoopSimplify.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Trans

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-10 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.63 -> 1.64 --- Log message: Make this check stricter. Disallow loop exit blocks from being shared by loops and their subloops. --- Diffs of the changes: (+7 -4) LoopSimplify.cpp | 11 +++ 1 files changed

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-02-10 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.62 -> 1.63 --- Log message: remove dead expr --- Diffs of the changes: (+0 -1) LoopSimplify.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp diff -u llvm/lib/Transfor

[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

2006-01-09 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Utils: LoopSimplify.cpp updated: 1.61 -> 1.62 --- Log message: Teach loopsimplify to update et-forest. Patch contributed by Daniel Berlin! --- Diffs of the changes: (+19 -0) LoopSimplify.cpp | 19 +++ 1 files changed, 19 insertion