forked from OSchip/llvm-project
[AMDGPU] Fix -Wimplicit-fallthrough warnings. NFCI.
llvm-svn: 307381
This commit is contained in:
parent
e3666ec9d6
commit
0f5b35059d
|
@ -298,18 +298,21 @@ bool AMDGPUSubtarget::makeLIDRangeMetadata(Instruction *I) const {
|
|||
case Intrinsic::amdgcn_workitem_id_x:
|
||||
case Intrinsic::r600_read_tidig_x:
|
||||
IdQuery = true;
|
||||
LLVM_FALLTHROUGH;
|
||||
case Intrinsic::r600_read_local_size_x:
|
||||
Dim = 0;
|
||||
break;
|
||||
case Intrinsic::amdgcn_workitem_id_y:
|
||||
case Intrinsic::r600_read_tidig_y:
|
||||
IdQuery = true;
|
||||
LLVM_FALLTHROUGH;
|
||||
case Intrinsic::r600_read_local_size_y:
|
||||
Dim = 1;
|
||||
break;
|
||||
case Intrinsic::amdgcn_workitem_id_z:
|
||||
case Intrinsic::r600_read_tidig_z:
|
||||
IdQuery = true;
|
||||
LLVM_FALLTHROUGH;
|
||||
case Intrinsic::r600_read_local_size_z:
|
||||
Dim = 2;
|
||||
break;
|
||||
|
|
|
@ -555,7 +555,7 @@ public:
|
|||
CFStack.pushBranch(AMDGPU::CF_PUSH_EG);
|
||||
} else
|
||||
CFStack.pushBranch(AMDGPU::CF_ALU_PUSH_BEFORE);
|
||||
|
||||
LLVM_FALLTHROUGH;
|
||||
case AMDGPU::CF_ALU:
|
||||
I = MI;
|
||||
AluClauses.push_back(MakeALUClause(MBB, I));
|
||||
|
|
|
@ -137,6 +137,7 @@ static bool isInlineConstantIfFolded(const SIInstrInfo *TII,
|
|||
= TII->get(IsF32 ? AMDGPU::V_MAD_F32 : AMDGPU::V_MAD_F16);
|
||||
return TII->isInlineConstant(OpToFold, MadDesc.OpInfo[OpNo].OperandType);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
|
|
|
@ -2022,10 +2022,12 @@ MachineInstr *SIInstrInfo::convertToThreeAddress(MachineFunction::iterator &MBB,
|
|||
return nullptr;
|
||||
case AMDGPU::V_MAC_F16_e64:
|
||||
IsF16 = true;
|
||||
LLVM_FALLTHROUGH;
|
||||
case AMDGPU::V_MAC_F32_e64:
|
||||
break;
|
||||
case AMDGPU::V_MAC_F16_e32:
|
||||
IsF16 = true;
|
||||
LLVM_FALLTHROUGH;
|
||||
case AMDGPU::V_MAC_F32_e32: {
|
||||
int Src0Idx = AMDGPU::getNamedOperandIdx(MI.getOpcode(),
|
||||
AMDGPU::OpName::src0);
|
||||
|
|
Loading…
Reference in New Issue