Skip to content

Commit c7b8276

Browse files
committed
[AMDGPU] Inherit constructors from WaitcntGenerator. NFC.
1 parent 113f058 commit c7b8276

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,7 @@ class WaitcntGenerator {
345345

346346
class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
347347
public:
348-
WaitcntGeneratorPreGFX12() = default;
349-
WaitcntGeneratorPreGFX12(const MachineFunction &MF)
350-
: WaitcntGenerator(MF, NUM_NORMAL_INST_CNTS) {}
348+
using WaitcntGenerator::WaitcntGenerator;
351349

352350
bool
353351
applyPreexistingWaitcnt(WaitcntBrackets &ScoreBrackets,
@@ -381,10 +379,7 @@ class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
381379

382380
class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
383381
public:
384-
WaitcntGeneratorGFX12Plus() = default;
385-
WaitcntGeneratorGFX12Plus(const MachineFunction &MF,
386-
InstCounterType MaxCounter)
387-
: WaitcntGenerator(MF, MaxCounter) {}
382+
using WaitcntGenerator::WaitcntGenerator;
388383

389384
bool
390385
applyPreexistingWaitcnt(WaitcntBrackets &ScoreBrackets,
@@ -2747,7 +2742,7 @@ bool SIInsertWaitcnts::run(MachineFunction &MF) {
27472742
WCG = &WCGGFX12Plus;
27482743
} else {
27492744
MaxCounter = NUM_NORMAL_INST_CNTS;
2750-
WCGPreGFX12 = WaitcntGeneratorPreGFX12(MF);
2745+
WCGPreGFX12 = WaitcntGeneratorPreGFX12(MF, MaxCounter);
27512746
WCG = &WCGPreGFX12;
27522747
}
27532748

0 commit comments

Comments
 (0)