Index: lib/Target/AMDGPU/SIInsertWaitcnts.cpp =================================================================== --- lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -141,6 +141,7 @@ T = (enum InstCounterType)(T + 1)) { memset(VgprScores[T], 0, sizeof(VgprScores[T])); } + } ~BlockWaitcntBrackets() = default; @@ -393,7 +394,11 @@ public: static char ID; - SIInsertWaitcnts() : MachineFunctionPass(ID) {} + SIInsertWaitcnts() : MachineFunctionPass(ID) { + (void)ForceExpCounter; + (void)ForceLgkmCounter; + (void)ForceVMCounter; + } bool runOnMachineFunction(MachineFunction &MF) override;