| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 76523
|
|
|
|
| |
llvm-svn: 76521
|
|
|
|
| |
llvm-svn: 76505
|
|
|
|
|
|
|
| |
by determining if (B pred (B-A)) is known, as it doesn't handle
overflow correctly.
llvm-svn: 76504
|
|
|
|
| |
llvm-svn: 76496
|
|
|
|
| |
llvm-svn: 76492
|
|
|
|
|
|
|
|
|
|
|
|
| |
Getelementptrs that are defined to wrap are virtually useless to
optimization, and getelementptrs that are undefined on any kind
of overflow are too restrictive -- it's difficult to ensure that
all intermediate addresses are within bounds. I'm going to take
a different approach.
Remove a few optimizations that depended on this flag.
llvm-svn: 76437
|
|
|
|
|
|
|
|
|
| |
in a convenient manner, factoring out some common code from
InstructionCombining and ValueTracking. Move the contents of
BinaryOperators.h into Operator.h and use Operator to generalize them
to support ConstantExprs as well as Instructions.
llvm-svn: 76232
|
|
|
|
|
|
|
|
| |
number of issues in
our current context-passing stuff, which is also fixed here
llvm-svn: 76089
|
|
|
|
|
|
|
| |
analysis. This allows indvars to emit a simpler loop trip count
expression.
llvm-svn: 76085
|
|
|
|
| |
llvm-svn: 75703
|
|
|
|
|
|
|
|
|
| |
This adds location info for all llvm_unreachable calls (which is a macro now) in
!NDEBUG builds.
In NDEBUG builds location info and the message is off (it only prints
"UREACHABLE executed").
llvm-svn: 75640
|
|
|
|
|
|
| |
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
|