R600: Consider KILLGT as an ALU instruction

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
This commit is contained in:
Vincent Lejeune 2013-04-03 16:24:04 +00:00
parent 1629965964
commit 795ecc3669
2 changed files with 4 additions and 3 deletions

View File

@ -144,7 +144,6 @@ public:
case AMDGPU::CF_ALU_PUSH_BEFORE:
CurrentStack++;
MaxStack = std::max(MaxStack, CurrentStack);
case AMDGPU::KILLGT:
case AMDGPU::CF_ALU:
CfCount++;
break;

View File

@ -61,8 +61,6 @@ private:
}
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()))
@ -195,6 +193,10 @@ private:
AluInstCount ++;
continue;
}
if (I->getOpcode() == AMDGPU::KILLGT) {
I++;
break;
}
if (TII->isALUInstr(I->getOpcode()) &&
!SubstituteKCacheBank(I, KCacheBanks))
break;