Mesa does not override llvm behavior wrt KILLGT anymore so llvm
has to handle KILLGT on its own.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178664
91177308-0d34-0410-b5e6-
96231b3b80d8
case AMDGPU::CF_ALU_PUSH_BEFORE:
CurrentStack++;
MaxStack = std::max(MaxStack, CurrentStack);
- case AMDGPU::KILLGT:
case AMDGPU::CF_ALU:
CfCount++;
break;
}
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()))
AluInstCount ++;
continue;
}
+ if (I->getOpcode() == AMDGPU::KILLGT) {
+ I++;
+ break;
+ }
if (TII->isALUInstr(I->getOpcode()) &&
!SubstituteKCacheBank(I, KCacheBanks))
break;