llvm.org GIT mirror llvm / 795ecc3
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 Vincent Lejeune 7 years ago
2 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
143143 case AMDGPU::CF_ALU_PUSH_BEFORE:
144144 CurrentStack++;
145145 MaxStack = std::max(MaxStack, CurrentStack);
146 case AMDGPU::KILLGT:
147146 case AMDGPU::CF_ALU:
148147 CfCount++;
149148 break;
6060 }
6161
6262 bool isALU(const MachineInstr *MI) const {
63 if (MI->getOpcode() == AMDGPU::KILLGT)
64 return false;
6563 if (TII->isALUInstr(MI->getOpcode()))
6664 return true;
6765 if (TII->isVector(*MI) || TII->isCubeOp(MI->getOpcode()))
194192 AluInstCount ++;
195193 continue;
196194 }
195 if (I->getOpcode() == AMDGPU::KILLGT) {
196 I++;
197 break;
198 }
197199 if (TII->isALUInstr(I->getOpcode()) &&
198200 !SubstituteKCacheBank(I, KCacheBanks))
199201 break;