| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
No functional change, just moved header files.
Targets can inject custom passes between register allocation and
rewriting. This makes it possible to tweak the register allocation
before rewriting, using the full global interference checking available
from LiveRegMatrix.
llvm-svn: 168806
|
|
|
|
| |
llvm-svn: 168660
|
|
|
|
| |
llvm-svn: 168659
|
|
|
|
| |
llvm-svn: 163974
|
|
|
|
|
|
| |
It is useful outside RegAllocBase.
llvm-svn: 158041
|
|
|
|
|
|
|
|
| |
Soon we'll be making LiveIntervalUnions for register units as well.
This was the only place using the RepReg member, so just remove it.
llvm-svn: 158038
|
|
|
|
| |
llvm-svn: 147088
|
|
|
|
|
|
|
| |
This is possible now that we now longer provide an interface to iterate
the interference overlaps.
llvm-svn: 137397
|
|
|
|
| |
llvm-svn: 137381
|
|
|
|
|
|
|
|
| |
The Query class now holds two iterators instead of an InterferenceResult
instance. The iterators are used as bookmarks for repeated
collectInterferingVRegs calls.
llvm-svn: 137380
|
|
|
|
|
|
|
| |
collectInterferingVRegs will be the primary function for interference
checks.
llvm-svn: 137354
|
|
|
|
|
|
| |
No clients are iterating over interference overlaps.
llvm-svn: 137350
|
|
|
|
|
|
|
|
| |
The InterferenceResult iterator turned out to be less important than we
thought it would be. LiveIntervalUnion clients want higher level
information, like the list of interfering virtual registers.
llvm-svn: 137346
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
RAGreedy::tryAssign will now evict interference from the preferred
register even when another register is free.
To support this, add the EvictionCost struct that counts how many hints
are broken by an eviction. We don't want to break one hint just to
satisfy another.
Rename canEvict to shouldEvict, and add the first bit of eviction policy
that doesn't depend on spill weights: Always make room in the preferred
register as long as the evictees can be split and aren't already
assigned to their preferred register.
Also make the CSR avoidance more accurate. When looking for a cheaper
register it is OK to use a new volatile register. Only CSR aliases that
have never been used before should be avoided.
llvm-svn: 134735
|
|
|
|
|
|
| |
when compiling many small functions.
llvm-svn: 129321
|
|
|
|
|
|
| |
weight limit has been exceeded.
llvm-svn: 129305
|
|
|
|
| |
llvm-svn: 128634
|
|
|
|
|
|
|
|
|
| |
register number.
The live range of a virtual register may change which invalidates the cached
interference information.
llvm-svn: 127772
|
|
|
|
|
|
|
|
| |
may be reused.
Use the virtual register number as a cache tag instead. They are not reused.
llvm-svn: 127561
|
|
|
|
|
|
|
| |
The tag is updated whenever the live interval union is changed, and it is tested
before using cached information.
llvm-svn: 125224
|
|
|
|
|
|
|
|
| |
This is a three-way interval list intersection between a virtual register, a
live interval union, and a loop. It will be used to identify interference-free
loops for live range splitting.
llvm-svn: 122034
|
|
|
|
| |
llvm-svn: 121783
|
|
|
|
|
|
| |
LiveIntervalUnions.
llvm-svn: 121781
|
|
|
|
| |
llvm-svn: 121410
|
|
|
|
|
|
|
| |
heuristic to reshuffle register assignments when we can't find an
available reg.
llvm-svn: 121388
|
|
|
|
|
|
|
|
|
|
|
| |
references instead.
Similarly, IntervalMap::begin() is almost as expensive as find(), so use find(x)
instead of begin().advanceTo(x);
This makes RegAllocBasic run another 5% faster.
llvm-svn: 121344
|
|
|
|
|
|
|
| |
Minor optimization to the use of IntervalMap iterators. They are fairly
heavyweight, so prefer SI.valid() over SI != end().
llvm-svn: 121217
|
|
|
|
|
|
|
| |
This speeds up RegAllocBasic by 20%, not counting releaseMemory which becomes
way faster.
llvm-svn: 121201
|
|
|
|
| |
llvm-svn: 121098
|
|
|
|
|
|
|
|
| |
in favor of the widespread llvm style. Capitalize variables and add
newlines for visual parsing. Rename variables for readability.
And other cleanup.
llvm-svn: 120490
|
|
|
|
|
|
|
|
| |
it makes no sense for allocation_order iterators to visit reserved regs.
The inline spiller depends on AliasAnalysis.
Manage the Query state to avoid uninitialized or stale results.
llvm-svn: 118800
|
|
|
|
|
|
|
|
|
| |
benchmarks hitting an assertion.
Adds LiveIntervalUnion::collectInterferingVRegs.
Fixes "late spilling" by checking for any unspillable live vregs among
all physReg aliases.
llvm-svn: 118701
|
|
|
|
|
|
| |
(retry now that the windows build is green)
llvm-svn: 118630
|
|
|
|
|
|
| |
-Wnon-virtual-dtor.
llvm-svn: 118616
|
|
|
|
| |
llvm-svn: 118613
|
|
|
|
| |
llvm-svn: 118604
|
|
|
|
|
|
|
|
|
| |
handle cases in which a register is unavailable for spill code.
Adds LiveIntervalUnion::extract. While processing interferences on a
live virtual register, reuses the same Query object for each
physcial reg.
llvm-svn: 118423
|
|
|
|
|
|
|
| |
them, but hopefully we won't. And this is not the right data structure
to do it anyway.
llvm-svn: 117412
|
|
|
|
| |
llvm-svn: 117384
|
|
framework. It's purpose is not to improve register allocation per se,
but to make it easier to develop powerful live range splitting. I call
it the basic allocator because it is as simple as a global allocator
can be but provides the building blocks for sophisticated register
allocation with live range splitting.
A minimal implementation is provided that trivially spills whenever it
runs out of registers. I'm checking in now to get high-level design
and style feedback. I've only done minimal testing. The next step is
implementing a "greedy" allocation algorithm that does some register
reassignment and makes better splitting decisions.
llvm-svn: 117174
|