| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
users from the Scalars map.
llvm-svn: 75634
|
|
|
|
|
|
| |
even when they're obvious.
llvm-svn: 75632
|
|
|
|
| |
llvm-svn: 75559
|
|
|
|
|
|
| |
doesn't print a newline.
llvm-svn: 75543
|
|
|
|
| |
llvm-svn: 75530
|
|
|
|
| |
llvm-svn: 75525
|
|
|
|
| |
llvm-svn: 75524
|
|
|
|
|
|
|
| |
check for avoiding re-analyzing a widening cast needed to happen
earlier, as getSCEV itself may result in a isLoopGuardedByCond query.
llvm-svn: 75511
|
|
|
|
| |
llvm-svn: 75497
|
|
|
|
|
|
|
|
| |
SCEVZeroExtendExpr ahead of the most expensive analysis. This
speeds up analysis and helps avoid pathologically bad behavior
on the testcase in PR4534.
llvm-svn: 75496
|
|
|
|
|
|
|
| |
a bunch of redundent code in Profile methods, and prepares for upcoming
changes to do improved memoization.
llvm-svn: 75494
|
|
|
|
|
|
|
|
|
| |
Constants.cpp and ConstantFold.cpp.
This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's
the only way I could figure out to make this process vaguely incremental.
llvm-svn: 75445
|
|
|
|
| |
llvm-svn: 75384
|
|
|
|
|
|
|
|
|
| |
Make llvm_unreachable take an optional string, thus moving the cerr<< out of
line.
LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for
NDEBUG builds.
llvm-svn: 75379
|
|
|
|
|
|
| |
breaks encapsulation. Also remove a dead prototype for setSCEV.
llvm-svn: 75272
|
|
|
|
|
|
|
| |
of loops. Add several new functions to for working with ScalarEvolution's
add-hoc value-range analysis functionality.
llvm-svn: 75252
|
|
|
|
|
|
|
|
|
|
|
|
| |
to a loop deletion more thorough. Don't prune the def-use tree search at
instructions that don't have SCEVs computed, because an instruction with
a user that has a computed SCEV may itself lack a computed SCEV. Also,
remove loop-related values from the ValuesAtScopes and
ConstantEvolutionLoopExitValues maps as well.
This fixes a regression in 483.xalancbmk.
llvm-svn: 75030
|
|
|
|
| |
llvm-svn: 74918
|
|
|
|
| |
llvm-svn: 74878
|
|
|
|
|
|
| |
through the ValueTracking API.
llvm-svn: 74873
|
|
|
|
|
|
| |
files.
llvm-svn: 74844
|
|
|
|
|
|
|
| |
than a wider one, before trying to compare their contents which will crash
if their sizes are different.
llvm-svn: 74792
|
|
|
|
| |
llvm-svn: 74551
|
|
|
|
|
|
|
|
|
|
| |
Constant. This lets ConstantInts be handled as SCEVConstant instead
of SCEVUnknown, as getUnknown no longer has special-case code for
ConstantInt and friends. This usually doesn't affect the final
output, since the constants end up getting folded later, but it
does make intermediate expressions more obvious in many cases.
llvm-svn: 74459
|
|
|
|
|
|
|
|
| |
an individual exhaustive evaluation reflects only the exit value
implied by an individual exit, which may differ from the actual
exit value of the loop if there are other exits. This fixes PR4477.
llvm-svn: 74447
|
|
|
|
|
|
|
| |
(otherwise harmless) uninitialized value warnings that
Duncan found with gcc-4.4.
llvm-svn: 74437
|
|
|
|
|
|
| |
of a team of individual allocations and a team of std::maps.
llvm-svn: 74393
|
|
|
|
|
|
|
|
| |
nesting order of nested AddRec expressions to skip the transformation
if it would introduce an AddRec with operands not loop-invariant
with respect to its loop.
llvm-svn: 74343
|
|
|
|
|
|
| |
are loop invariant, not just the start operand.
llvm-svn: 74338
|
|
|
|
| |
llvm-svn: 74074
|
|
|
|
|
|
|
|
|
| |
computations in loops with multiple exits.
Adjust the testcase for PR4436 so that the relevant portion isn't
optimized away.
llvm-svn: 74073
|
|
|
|
|
|
| |
and tidy up a few other formatting issues.
llvm-svn: 74060
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
trip counts in more cases.
Generalize ScalarEvolution's isLoopGuardedByCond code to recognize
And and Or conditions, splitting the code out into an
isNecessaryCond helper function so that it can evaluate Ands and Ors
recursively, and make SCEVExpander be much more aggressive about
hoisting instructions out of loops.
test/CodeGen/X86/pr3495.ll has an additional instruction now, but
it appears to be due to an arbitrary register allocation difference.
llvm-svn: 74048
|
|
|
|
| |
llvm-svn: 74045
|
|
|
|
|
|
|
|
|
| |
createSCEV. Also, recognize UndefValue in createSCEV.
Change getIntegerSCEV's comment to avoid mentioning FP types,
and re-implement it in terms of getConstant instead of getUnknown.
llvm-svn: 74041
|
|
|
|
|
|
|
| |
SCEVConstants. This cleanup is a step toward letting getUnknown
be simpler.
llvm-svn: 74037
|
|
|
|
| |
llvm-svn: 74035
|
|
|
|
| |
llvm-svn: 74032
|
|
|
|
|
|
| |
sides is CouldNotCompute, the resulting exact count must be CouldNotCompute.
llvm-svn: 73920
|
|
|
|
| |
llvm-svn: 73907
|
|
|
|
| |
llvm-svn: 73906
|
|
|
|
| |
llvm-svn: 73903
|
|
|
|
|
|
|
|
|
|
|
| |
tables attached to the ScalarEvolution pass.
This also throws out the SCEV reference counting scheme, as the the SCEVs now have a lifetime controlled by the
ScalarEvolution pass.
Note that SCEVHandle is now a no-op, and will be remove in a future commit.
llvm-svn: 73892
|
|
|
|
|
|
|
|
|
|
|
|
| |
counts for loops with multiple exits, replacing more conservative code
which only handled constants. This is derived from a patch by
Nick Lewycky.
This also fixes llc aborts in ClamAV and others, as
getUMinFromMismatchedTypes takes care of balancing the types before
working with them.
llvm-svn: 73884
|
|
|
|
| |
llvm-svn: 73883
|
|
|
|
|
|
| |
helper functions. Based on a patch by Nick Lewycky.
llvm-svn: 73869
|
|
|
|
|
|
|
|
|
| |
blocks, and also exit blocks with multiple conditions (combined
with (bitwise) ands and ors). It's often infeasible to compute an
exact trip count in such cases, but a useful upper bound can often
be found.
llvm-svn: 73866
|
|
|
|
| |
llvm-svn: 73865
|
|
|
|
|
|
|
|
| |
overflow when computing a integer division to round up.
Thanks to Nick Lewycky for noticing this!
llvm-svn: 73862
|
|
|
|
|
|
|
|
|
|
| |
SCEVUnknowns with identical Instructions to be equal. This allows
it to analze cases such as the attached testcase, where the front-end
has cloned the loop controlling expression. Along with r73805, this
lets IndVarSimplify eliminate all the sign-extend casts in the
loop in the attached testcase.
llvm-svn: 73807
|