| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 72376
|
| |
|
|
|
|
|
|
| |
in the case where a loop exit value cannot be computed, instead of only in
some cases while using SCEVCouldNotCompute in others. This simplifies
getSCEVAtScope's callers.
llvm-svn: 72375
|
| |
|
|
|
|
|
| |
about the convention from LoopInfo that a null Loop* means the entire
function body.
llvm-svn: 72152
|
| |
|
|
|
|
| |
it's an implementation detail.
llvm-svn: 72122
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instructions. It attempts to create high-level multi-operand GEPs,
though in cases where this isn't possible it falls back to casting
the pointer to i8* and emitting a GEP with that. Using GEP instructions
instead of ptrtoint+arithmetic+inttoptr helps pointer analyses that
don't use ScalarEvolution, such as BasicAliasAnalysis.
Also, make the AddrModeMatcher more aggressive in handling GEPs.
Previously it assumed that operand 0 of a GEP would require a register
in almost all cases. It now does extra checking and can do more
matching if operand 0 of the GEP is foldable. This fixes a problem
that was exposed by SCEVExpander using GEPs.
llvm-svn: 72093
|
| |
|
|
| |
llvm-svn: 72011
|
| |
|
|
|
|
| |
bits have been stripped out by instcombine.
llvm-svn: 72010
|
| |
|
|
| |
llvm-svn: 72009
|
| |
|
|
|
|
|
| |
consistency with other routines that use a null Loop* to mean code
not contained by any loop.
llvm-svn: 72008
|
| |
|
|
|
|
| |
instead of within their controlling expressions.
llvm-svn: 72007
|
| |
|
|
|
|
| |
type mismatches.
llvm-svn: 72006
|
| |
|
|
|
|
| |
entering a loop is a non-split critical edge.
llvm-svn: 72004
|
| |
|
|
|
|
| |
and similar to ConstantInt's isOne().
llvm-svn: 72003
|
| |
|
|
|
|
|
|
|
| |
getNoopOrSignExtend, and getTruncateOrNoop. These are similar
to getTruncateOrZeroExtend etc., except that they assert that
the conversion is either not widening or narrowing, as
appropriate. These will be used in some upcoming fixes.
llvm-svn: 71632
|
| |
|
|
|
|
|
|
|
| |
These values aren't analyzable, so they don't care if more information
about the loop trip count can be had. Also, SCEVUnknown is used for
a PHI while the PHI itself is being analyzed, so it needs to be left
in the Scalars map. This fixes a variety of subtle issues.
llvm-svn: 71533
|
| |
|
|
|
|
|
|
|
|
| |
return the correct value when the cast operand is all zeros. This ought
to be pretty rare, because it would mean that the regular SCEV folding
routines missed a case, though there are cases they might legitimately
miss. Also, it's unlikely anything currently using GetMinTrailingZeros
cares about this case.
llvm-svn: 71532
|
| |
|
|
|
|
| |
pointer-based condition. This fixes PR3171.
llvm-svn: 71354
|
| |
|
|
|
|
|
| |
will make it more obvious what it represents, and stop
it being confused with the StoreSize.
llvm-svn: 71349
|
| |
|
|
| |
llvm-svn: 71302
|
| |
|
|
|
|
| |
overflow checks.
llvm-svn: 71284
|
| |
|
|
|
|
|
| |
add-recurrence to be exposed. Add a new SCEV folding rule to
help simplify expressions in the presence of these extra truncs.
llvm-svn: 71264
|
| |
|
|
|
|
| |
constant exprs as well as instructions.
llvm-svn: 71262
|
| |
|
|
|
|
|
|
|
| |
which are not analyzed with SCEV techniques, which can require
brute-forcing through a large number of instructions. This
fixes a massive compile-time issue on 400.perlbench (in
particular, the loop in MD5Transform).
llvm-svn: 71259
|
| |
|
|
|
|
| |
clients to use it.
llvm-svn: 71258
|
| |
|
|
| |
llvm-svn: 71255
|
| |
|
|
|
|
| |
separate function.
llvm-svn: 71252
|
| |
|
|
|
|
| |
This fixes an old FIXME, and is needed by some upcoming changes.
llvm-svn: 71247
|
| |
|
|
|
|
| |
the SCEVUDivExpr case.
llvm-svn: 71173
|
| |
|
|
|
|
|
|
| |
to sorting SCEVs by their kind, sort SCEVs of the same kind according
to their operands. This helps avoid things like (a+b) being a distinct
expression from (b+a).
llvm-svn: 71160
|
| |
|
|
|
|
| |
headers due to library dependencies.
llvm-svn: 71159
|
| |
|
|
|
|
|
| |
SCEVAddRecExpr. This eliminates redundant code for visiting
all the operands of an expression.
llvm-svn: 71157
|
| |
|
|
|
|
|
| |
trivially different code on different hosts (due to differing
std::sort implementations).
llvm-svn: 71124
|
| |
|
|
|
|
|
|
|
|
|
|
| |
CallbackVH, with fixes. allUsesReplacedWith need to
walk the def-use chains and invalidate all users of a
value that is replaced. SCEVs of users need to be
recalcualted even if the new value is equivalent. Also,
make forgetLoopPHIs walk def-use chains, since any
SCEV that depends on a PHI should be recalculated when
more information about that PHI becomes available.
llvm-svn: 70927
|
| |
|
|
| |
llvm-svn: 70925
|
| |
|
|
| |
llvm-svn: 70924
|
| |
|
|
| |
llvm-svn: 70919
|
| |
|
|
| |
llvm-svn: 70661
|
| |
|
|
|
|
|
|
|
| |
makes ScalarEvolution::deleteValueFromRecords, and it's code that
subtly needed to be called before ReplaceAllUsesWith, unnecessary.
It also makes ValueDeletionListener unnecessary.
llvm-svn: 70645
|
| |
|
|
|
|
|
| |
it also forget any SCEVs associated with loop-header PHIs in the loop,
as they may be dependent on trip count information.
llvm-svn: 70633
|
| |
|
|
|
|
|
|
| |
artificial "ptrtoint", as it tends to clutter up complicated
expressions. The cast operators now print both source and
destination types, which is usually sufficient.
llvm-svn: 70554
|
| |
|
|
| |
llvm-svn: 70550
|
| |
|
|
|
|
| |
avoids duplicate scevs that differ only in type.
llvm-svn: 70549
|
| |
|
|
|
|
| |
gone lost during the pImpl conversion.
llvm-svn: 70536
|
| |
|
|
| |
llvm-svn: 70510
|
| |
|
|
|
|
|
|
|
|
|
|
| |
compute an upper-bound value for the trip count, in addition to
the actual trip count. Use this to allow getZeroExtendExpr and
getSignExtendExpr to fold casts in more cases.
This may eventually morph into a more general value-range
analysis capability; there are certainly plenty of places where
more complete value-range information would allow more folding.
llvm-svn: 70509
|
| |
|
|
|
|
| |
in getSCEVAtScope.
llvm-svn: 70495
|
| |
|
|
|
|
| |
a SCEVable type, not just integer types.
llvm-svn: 70463
|
| |
|
|
| |
llvm-svn: 70422
|
| |
|
|
|
|
|
|
| |
(sext i8 {-128,+,1} to i64) to i64 {-128,+,1}, where the iteration
crosses from negative to positive, but is still safe if the trip
count is within range.
llvm-svn: 70421
|
| |
|
|
|
|
|
| |
print sext, zext, and trunc, instead of signextend, zeroextend,
and truncate, respectively, for consistency with the main IR.
llvm-svn: 70405
|