}
bool isALU(const MachineInstr *MI) const {
- if (MI->getOpcode() == AMDGPU::KILLGT)
- return false;
if (TII->isALUInstr(MI->getOpcode()))
return true;
if (TII->isVector(*MI) || TII->isCubeOp(MI->getOpcode()))
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;
AluInstCount ++;
continue;
}
+ if (I->getOpcode() == AMDGPU::KILLGT) {
+ I++;
+ break;
+ }
if (TII->isALUInstr(I->getOpcode()) &&
!SubstituteKCacheBank(I, KCacheBanks))
break;
AluInstCount += OccupiedDwords(I);
- if (AluInstCount > 124)
- break;
}
unsigned Opcode = PushBeforeModifier ?
AMDGPU::CF_ALU_PUSH_BEFORE : AMDGPU::CF_ALU;