Skip to content

Commit 0ecac6d

Browse files
authored
[AMDGPU] Inherit constructors from WaitcntGenerator. NFC. (#170845)
1 parent 90a14d2 commit 0ecac6d

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,
@@ -2748,7 +2743,7 @@ bool SIInsertWaitcnts::run(MachineFunction &MF) {
27482743
WCG = &WCGGFX12Plus;
27492744
} else {
27502745
MaxCounter = NUM_NORMAL_INST_CNTS;
2751-
WCGPreGFX12 = WaitcntGeneratorPreGFX12(MF);
2746+
WCGPreGFX12 = WaitcntGeneratorPreGFX12(MF, MaxCounter);
27522747
WCG = &WCGPreGFX12;
27532748
}
27542749

0 commit comments

Comments
 (0)