llvm-6502/test/CodeGen
Tom Stellard 19a99df130 R600: Fix scheduling of instructions that use the LDS output queue
The LDS output queue is accessed via the OQAP register.  The OQAP
register cannot be live across clauses, so if value is written to the
output queue, it must be retrieved before the end of the clause.
With the machine scheduler, we cannot statisfy this constraint, because
it lacks proper alias analysis and it will mark some LDS accesses as
having a chain dependency on vertex fetches.  Since vertex fetches
require a new clauses, the dependency may end up spiltting OQAP uses and
defs so the end up in different clauses.  See the lds-output-queue.ll
test for a more detailed explanation.

To work around this issue, we now combine the LDS read and the OQAP
copy into one instruction and expand it after register allocation.

This patch also adds some checks to the EmitClauseMarker pass, so that
it doesn't end a clause with a value still in the output queue and
removes AR.X and OQAP handling from the scheduler (AR.X uses and defs
were already being expanded post-RA, so the scheduler will never see
them).

Reviewed-by: Vincent Lejeune <vljn at ovi.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194755 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-15 00:12:45 +00:00
..
AArch64 Add test case for AArch64 NEON instruction set misc. 2013-11-14 06:45:17 +00:00
ARM ARM: produce friendly error for invalid inline asm 2013-11-14 17:15:39 +00:00
CPP
Generic Error if we see an alias to a declaration. 2013-11-14 13:58:06 +00:00
Hexagon
Inputs
Mips Take care of long short branch immediate instructions for mips16 in 2013-11-13 23:52:18 +00:00
MSP430 Make sure SP is always aligned on a 2 byte boundary 2013-10-24 09:32:31 +00:00
NVPTX [NVPTX] Properly handle bitcast ConstantExpr when checking for the alignment of function parameters 2013-11-11 19:28:19 +00:00
PowerPC Error if we see an alias to a declaration. 2013-11-14 13:58:06 +00:00
R600 R600: Fix scheduling of instructions that use the LDS output queue 2013-11-15 00:12:45 +00:00
SPARC [SparcV9] Handle i64 <-> float conversions in sparcv9 mode. 2013-11-03 12:28:40 +00:00
SystemZ [SystemZ] Automatically detect zEC12 and z196 hosts 2013-10-31 12:14:17 +00:00
Thumb
Thumb2 Enable generating legacy IT block for AArch32 2013-11-13 18:29:49 +00:00
X86 Simplify testcase. 2013-11-14 23:43:10 +00:00
XCore Error if we see an alias to a declaration. 2013-11-14 13:58:06 +00:00