Skip to content

Commit 0606747

Browse files
committed
[AMDGPU] Remove some pointless fallthrough annotations
1 parent 39e24bd commit 0606747

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ int GCNHazardRecognizer::checkMAIHazards90A(MachineInstr *MI) {
23422342
case 8:
23432343
NeedWaitStates = SMFMA16x16WritesVGPROverlappedSrcABWaitStates;
23442344
break;
2345-
case 16: [[fallthrough]];
2345+
case 16:
23462346
default:
23472347
NeedWaitStates = SMFMA32x32WritesVGPROverlappedSrcABWaitStates;
23482348
}

llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,14 @@ static unsigned getOpcodeWidth(const MachineInstr &MI, const SIInstrInfo &TII) {
376376
case AMDGPU::S_BUFFER_LOAD_DWORDX8_SGPR_IMM:
377377
case AMDGPU::S_LOAD_DWORDX8_IMM:
378378
return 8;
379-
case AMDGPU::DS_READ_B32: [[fallthrough]];
380-
case AMDGPU::DS_READ_B32_gfx9: [[fallthrough]];
381-
case AMDGPU::DS_WRITE_B32: [[fallthrough]];
379+
case AMDGPU::DS_READ_B32:
380+
case AMDGPU::DS_READ_B32_gfx9:
381+
case AMDGPU::DS_WRITE_B32:
382382
case AMDGPU::DS_WRITE_B32_gfx9:
383383
return 1;
384-
case AMDGPU::DS_READ_B64: [[fallthrough]];
385-
case AMDGPU::DS_READ_B64_gfx9: [[fallthrough]];
386-
case AMDGPU::DS_WRITE_B64: [[fallthrough]];
384+
case AMDGPU::DS_READ_B64:
385+
case AMDGPU::DS_READ_B64_gfx9:
386+
case AMDGPU::DS_WRITE_B64:
387387
case AMDGPU::DS_WRITE_B64_gfx9:
388388
return 2;
389389
default:

0 commit comments

Comments
 (0)