- May 20, 2010
-
-
Dan Gohman authored
and fix a bug that valgrind noticed where the code would std::swap an element with itself. llvm-svn: 104225
-
Dan Gohman authored
the addressing modes don't make this trivially easy. This allows it to avoid falling into the less precise heuristics in more cases. llvm-svn: 104186
-
- May 19, 2010
-
-
Dan Gohman authored
llvm-svn: 104089
-
Dan Gohman authored
constants in registers which partially cancel out their immediate fields. llvm-svn: 104088
-
Dan Gohman authored
of its formulae have been removed into a helper function, and also teach it how to update the RegUseTracker. llvm-svn: 104087
-
Dan Gohman authored
function. llvm-svn: 104082
-
Dan Gohman authored
llvm-svn: 104080
-
Dan Gohman authored
a helper function. llvm-svn: 104079
-
Dan Gohman authored
llvm-svn: 104078
-
Dan Gohman authored
is inconsistent with the BaseRegs field. It's not print's job to assert on an invalid condition, but it can make one more obvious. llvm-svn: 104077
-
Dan Gohman authored
confusion with LSRInstance's RegUses member. llvm-svn: 104076
-
- May 11, 2010
-
-
Douglas Gregor authored
llvm-svn: 103457
-
- May 08, 2010
-
-
Dan Gohman authored
LSRUse's Regs set after all pruning is done, rather than trying to do it on the fly, which can produce an incomplete result. This fixes a case where heuristic pruning was stripping all formulae from a use, which led the solver to enter an infinite loop. Also, add a few asserts to diagnose this kind of situation. llvm-svn: 103328
-
- May 04, 2010
-
-
Dan Gohman authored
same, now that getConstant has overloads consistent with ConstantInt::get. llvm-svn: 102965
-
- Apr 24, 2010
-
-
Dan Gohman authored
that indvars may use, now that indvars is recognizing le and ge loops. llvm-svn: 102235
-
- Apr 23, 2010
-
-
Dan Gohman authored
misses an opportunity to fold add operands, but folds them after LSR has separated them out. This fixes rdar://7886751. llvm-svn: 102157
-
- Apr 19, 2010
-
-
Dan Gohman authored
just ask ScalarEvolution for it on demand. This helps IVUsers be more robust in the case of expressions changing underneath it. This fixes PR6862. llvm-svn: 101819
-
- Apr 12, 2010
-
-
Dan Gohman authored
llvm-svn: 101033
-
- Apr 10, 2010
-
-
Dan Gohman authored
into adjacent loops. Also, ensure that the insert position is dominated by the loop latch of any loop in the post-inc set which has a latch. llvm-svn: 100906
-
- Apr 09, 2010
-
-
Dan Gohman authored
so that an unfortunately placed bitcast doesn't pin a value in a register. llvm-svn: 100883
-
Dan Gohman authored
a separate function. llvm-svn: 100845
-
Dan Gohman authored
inputs happen to negate each other. llvm-svn: 100828
-
Dan Gohman authored
llvm-svn: 100824
-
- Apr 08, 2010
-
-
Dan Gohman authored
ensure that the expansion is dominated by the increments of those loops. llvm-svn: 100748
-
Dan Gohman authored
explicitly split into stride-and-offset pairs. Also, add the ability to track multiple post-increment loops on the same expression. This refines the concept of "normalizing" SCEV expressions used for to post-increment uses, and introduces a dedicated utility routine for normalizing and denormalizing expressions. This fixes the expansion of expressions which are post-increment users of more than one loop at a time. More broadly, this takes LSR another step closer to being able to reason about more than one loop at a time. llvm-svn: 100699
-
- Mar 26, 2010
-
-
Dan Gohman authored
llvm-svn: 99580
-
Gabor Greif authored
llvm-svn: 99564
-
- Mar 03, 2010
-
-
Dan Gohman authored
of loops. llvm-svn: 97642
-
- Mar 02, 2010
-
-
Dan Gohman authored
emitted after the increment. Make sure the insert position reflects this. This fixes PR6453. llvm-svn: 97537
-
- Mar 01, 2010
-
-
Dan Gohman authored
llvm-svn: 97453
-
- Feb 22, 2010
-
-
Dan Gohman authored
llvm-svn: 96780
-
Dan Gohman authored
induction variable value and a loop-variant value, don't force the insert position to be at the post-increment position, because it may not be dominated by the loop-variant value. This fixes a use-before-def problem noticed on PPC. llvm-svn: 96774
-
- Feb 19, 2010
-
-
Dan Gohman authored
the division would have a remainder. llvm-svn: 96693
-
Dan Gohman authored
scaled reuse. llvm-svn: 96692
-
Dan Gohman authored
strides in foreign loops. This helps locate reuse opportunities with existing induction variables in foreign loops and reduces the need for inserting new ones. This fixes rdar://7657764. llvm-svn: 96629
-
- Feb 17, 2010
-
-
Dan Gohman authored
llvm-svn: 96429
-
Dan Gohman authored
have overflowed. llvm-svn: 96428
-
- Feb 16, 2010
-
-
Dan Gohman authored
llvm-svn: 96382
-
Dan Gohman authored
llvm-svn: 96372
-
Duncan Sands authored
and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. llvm-svn: 96344
-