| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 71717
|
| |
|
|
|
|
|
|
| |
belonged. The variable declaration stuff wasn't happy with it where it
was. Sorry that the testcase is so big. Bugpoint wasn't able to reduce it
successfully.
llvm-svn: 71714
|
| |
|
|
|
|
|
| |
external. These may have address 0 and are not safe
to execute unconditionally.
llvm-svn: 71688
|
| |
|
|
| |
llvm-svn: 71678
|
| |
|
|
|
|
|
| |
is not known to be nothrow. This allows readnone/readonly functions
to be deleted even if we don't know whether the callee can throw.
llvm-svn: 71676
|
| |
|
|
|
|
| |
includeing declarations. Later emit them from their section lists.
llvm-svn: 71661
|
| |
|
|
|
|
|
|
| |
IVUsers.cpp: In member function ‘bool llvm::IVUsers::AddUsersIfInteresting(llvm::Instruction*)’:
IVUsers.cpp:221: warning: ‘isSigned’ may be used uninitialized in this function
with gcc-4.3.
llvm-svn: 71654
|
| |
|
|
| |
llvm-svn: 71646
|
| |
|
|
| |
llvm-svn: 71645
|
| |
|
|
| |
llvm-svn: 71644
|
| |
|
|
|
|
| |
operand was killed, the kill needs to be removed from regB's VarInfo.
llvm-svn: 71635
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
without one. Use it where we were using abs on
int64_t objects.
(I strongly suspect the casts to unsigned in the
fragments in LoopStrengthReduce are not doing whatever
the original intent was, but the obvious change to
uint64_t doesn't work. Maybe later.)
llvm-svn: 71612
|
| |
|
|
|
|
|
| |
a supporting preliminary patch for GCC-compatible SjLJ exception handling. Note that these intrinsics are not designed to be invoked directly by the user, but
rather used by the front-end as target hooks for exception handling.
llvm-svn: 71610
|
| |
|
|
|
|
| |
don't want to add nops in the outer loop for the sake of aligning the inner loop.
llvm-svn: 71609
|
| |
|
|
|
|
| |
produce side effects.
llvm-svn: 71606
|
| |
|
|
| |
llvm-svn: 71602
|
| |
|
|
| |
llvm-svn: 71601
|
| |
|
|
|
|
|
|
|
| |
- moved shrink wrapping code from PrologEpilogInserter.cpp to
new file ShrinkWrapping.cpp.
- moved PEI pass definition into new shared header PEI.h.
llvm-svn: 71588
|
| |
|
|
| |
llvm-svn: 71587
|
| |
|
|
| |
llvm-svn: 71582
|
| |
|
|
|
|
| |
when doing forward / backward propagation.
llvm-svn: 71574
|
| |
|
|
| |
llvm-svn: 71563
|
| |
|
|
| |
llvm-svn: 71562
|
| |
|
|
|
|
|
| |
Later in asmprinter, go over thsese sections and print them.
Do not print empty sections.
llvm-svn: 71560
|
| |
|
|
|
|
| |
just emit a comment for readability.
llvm-svn: 71544
|
| |
|
|
|
|
| |
to check if an insn is accessing memory during mem sel optimization.
llvm-svn: 71537
|
| |
|
|
|
|
|
|
|
|
|
| |
after finding the (unique) layout predecessor. Sometimes a block may be listed
more than once, and processing it more than once in this loop can lead to
inconsistent values for FtTBB/FtFBB, since the AnalyzeBranch method does not
clear these values. There's no point in continuing the loop regardless.
The testcase for this is reduced from the 2003-05-02-DependentPHI SingleSource
test.
llvm-svn: 71536
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and generalize it so that it can be used by IndVarSimplify. Implement the
base IndVarSimplify transformation code using IVUsers. This removes
TestOrigIVForWrap and associated code, as ScalarEvolution now has enough
builtin overflow detection and folding logic to handle all the same cases,
and more. Run "opt -iv-users -analyze -disable-output" on your favorite
loop for an example of what IVUsers does.
This lets IndVarSimplify eliminate IV casts and compute trip counts in
more cases. Also, this happens to finally fix the remaining testcases
in PR1301.
Now that IndVarSimplify is being more aggressive, it occasionally runs
into the problem where ScalarEvolutionExpander's code for avoiding
duplicate expansions makes it difficult to ensure that all expanded
instructions dominate all the instructions that will use them. As a
temporary measure, IndVarSimplify now uses a FixUsesBeforeDefs function
to fix up instructions inserted by SCEVExpander. Fortunately, this code
is contained, and can be easily removed once a more comprehensive
solution is available.
llvm-svn: 71535
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 71520
|
| |
|
|
|
|
|
| |
blast it away.
- Move InlineInfo bookkeeping to bookkeep the correct debug info object.
llvm-svn: 71519
|
| |
|
|
| |
llvm-svn: 71495
|
| |
|
|
|
|
|
|
| |
postinc iv value. Previously LSR would only optimize those which are in the loop latch block. However, if LSR can prove it is safe (and profitable), it's now possible to change those not in the latch blocks to use postinc values.
Also, if the compare is the only use, LSR would place the iv increment instruction before the compare instead in the latch.
llvm-svn: 71485
|
| |
|
|
|
|
| |
sucessor info.
llvm-svn: 71478
|
| |
|
|
| |
llvm-svn: 71472
|
| |
|
|
| |
llvm-svn: 71468
|
| |
|
|
| |
llvm-svn: 71459
|
| |
|
|
| |
llvm-svn: 71457
|
| |
|
|
| |
llvm-svn: 71456
|
| |
|
|
|
|
|
|
| |
type, rather than assume that it does. If the operand is not vector, it
shouldn't be run through ScalarizeVectorOp. This fixes one of the
testcases in PR3886.
llvm-svn: 71453
|
| |
|
|
| |
llvm-svn: 71449
|
| |
|
|
|
|
| |
fix Clang PRs 4148 and 4183.
llvm-svn: 71448
|
| |
|
|
| |
llvm-svn: 71447
|
| |
|
|
|
|
| |
address folding.
llvm-svn: 71446
|
| |
|
|
| |
llvm-svn: 71443
|
| |
|
|
| |
llvm-svn: 71442
|
| |
|
|
|
|
|
|
| |
count down to 0 instead, under very restricted
circumstances. Adjust 4 testcases in which this
optimization fires.
llvm-svn: 71439
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- reduces _static_ callee saved register spills
and restores similar to Chow's original algorithm.
- iterative implementation with simple heuristic
limits to mitigate compile time impact.
- handles placing spills/restores for multi-entry,
multi-exit regions in the Machine CFG without
splitting edges.
- passes test-suite in LLCBETA mode.
Added contains() method to ADT/SparseBitVector.
llvm-svn: 71438
|