mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
R600: Fix last ALU of a clause being emitted in a separate clause
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -187,6 +187,8 @@ private:
|
||||
continue;
|
||||
if (!isALU(I))
|
||||
break;
|
||||
if (AluInstCount > TII->getMaxAlusPerClause())
|
||||
break;
|
||||
if (I->getOpcode() == AMDGPU::PRED_X) {
|
||||
if (TII->getFlagOp(I).getImm() & MO_FLAG_PUSH)
|
||||
PushBeforeModifier = true;
|
||||
@@ -201,8 +203,6 @@ private:
|
||||
!SubstituteKCacheBank(I, KCacheBanks))
|
||||
break;
|
||||
AluInstCount += OccupiedDwords(I);
|
||||
if (AluInstCount > TII->getMaxAlusPerClause())
|
||||
break;
|
||||
}
|
||||
unsigned Opcode = PushBeforeModifier ?
|
||||
AMDGPU::CF_ALU_PUSH_BEFORE : AMDGPU::CF_ALU;
|
||||
|
Reference in New Issue
Block a user