mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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:
parent
1629965964
commit
795ecc3669
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user