[llvm] r335669 - AMDGPU: Silence unused warnings in waitcnt insertion pass in release build

Konstantin Zhuravlyov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 26 14:33:38 PDT 2018


Author: kzhuravl
Date: Tue Jun 26 14:33:38 2018
New Revision: 335669

URL: http://llvm.org/viewvc/llvm-project?rev=335669&view=rev
Log:
AMDGPU: Silence unused warnings in waitcnt insertion pass in release build

Differential Revision: https://reviews.llvm.org/D48607

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp?rev=335669&r1=335668&r2=335669&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp Tue Jun 26 14:33:38 2018
@@ -393,7 +393,11 @@ private:
 public:
   static char ID;
 
-  SIInsertWaitcnts() : MachineFunctionPass(ID) {}
+  SIInsertWaitcnts() : MachineFunctionPass(ID) {
+    (void)ForceExpCounter;
+    (void)ForceLgkmCounter;
+    (void)ForceVMCounter;
+  }
 
   bool runOnMachineFunction(MachineFunction &MF) override;
 




More information about the llvm-commits mailing list