| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was a bug in keeping track of the available domains when merging
domain values.
The wrong domain mask caused ExecutionDepsFix to try to move VANDPSYrr
to the integer domain which is only available in AVX2.
Also add an assertion to catch future attempts at emitting AVX2
instructions.
llvm-svn: 145096
|
|
|
|
|
|
| |
A function using any RC alias is enough to enable the ExeDepsFix pass.
llvm-svn: 144636
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Two new TargetInstrInfo hooks lets the target tell ExecutionDepsFix
about instructions with partial register updates causing false unwanted
dependencies.
The ExecutionDepsFix pass will break the false dependencies if the
updated register was written in the previoius N instructions.
The small loop added to sse-domains.ll runs twice as fast with
dependency-breaking instructions inserted.
llvm-svn: 144602
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Keep track of the last instruction to define each register individually
instead of per DomainValue. This lets us track more accurately when a
register was last written.
Also track register ages across basic blocks. When entering a new
basic block, use the least stale predecessor def as a worst case
estimate for register age.
The register age is used to arbitrate between conflicting domains. The
most recently defined register wins.
llvm-svn: 144601
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
During the initial RPO traversal of the basic blocks, remember the ones
that are incomplete because of back-edges from predecessors that haven't
been visited yet.
After the initial RPO, revisit all those loop headers so the incoming
DomainValues on the back-edges can be properly collapsed.
This will properly fix execution domains on software pipelined code,
like the included test case.
llvm-svn: 144151
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When merging two uncollapsed DomainValues, place a link to the active
DomainValue from the passive DomainValue. This allows old stale
references to the passive DomainValue to be updated to point to the
active DomainValue.
The new resolve() function finds the active DomainValue and updates the
pointer.
This change makes old live-out lists more useful since they may contain
uncollapsed DomainValues that have since been merged into other
DomainValues.
llvm-svn: 144149
|
|
|
|
|
|
| |
This allows clear() to be called on a DomainValue with references.
llvm-svn: 144147
|
|
|
|
|
|
| |
There is no need to involve the LiveRegs array and kill() any longer.
llvm-svn: 144133
|
|
|
|
|
|
| |
No functional change.
llvm-svn: 144132
|
|
|
|
|
|
|
|
|
|
| |
This new function will decrement the reference count, and collapse a
domain value when the last reference is gone.
This simplifies DomainValue reference counting, and decouples it from
the LiveRegs array.
llvm-svn: 144131
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old value may still be referenced by some live-out list, and we
don't wan't to collapse those instructions twice.
This fixes the "Can only swizzle VMOVD" assertion in some armv7 SPEC
builds.
<rdar://problem/10413292>
llvm-svn: 144117
|
|
|
|
|
|
|
|
|
|
|
|
| |
DomainValues that are only used by "don't care" instructions are now
collapsed to the first possible execution domain after all basic blocks
have been processed. This typically means the PS domain on x86.
For example, the vsel_i64 and vsel_double functions in sse2-blend.ll are
completely collapsed to the PS domain instead of containing a mix of
execution domains created by isel.
llvm-svn: 144037
|
|
|
|
|
|
|
|
| |
The enterBasicBlock() function is combining live-out values from
predecessor blocks. The RPO traversal means that more predecessors
have been visited when that happens, only back-edges are missing.
llvm-svn: 144025
|
|
|
|
| |
llvm-svn: 144020
|
|
|
|
| |
llvm-svn: 144015
|
|
|
|
| |
llvm-svn: 144014
|
|
|
|
|
|
| |
No functional change intended.
llvm-svn: 140664
|
|
I'll clean up the source in the next commit.
llvm-svn: 140663
|