[llvm] 3c4f8bb - AMDGPU/SI: make ~SIScheduleBlockCreator trivial

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 21:53:41 PST 2019


Author: Fangrui Song
Date: 2019-11-11T21:51:59-08:00
New Revision: 3c4f8bb108b2a362db7d723fe9646a3d236fe60e

URL: https://github.com/llvm/llvm-project/commit/3c4f8bb108b2a362db7d723fe9646a3d236fe60e
DIFF: https://github.com/llvm/llvm-project/commit/3c4f8bb108b2a362db7d723fe9646a3d236fe60e.diff

LOG: AMDGPU/SI: make ~SIScheduleBlockCreator trivial

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
    llvm/lib/Target/AMDGPU/SIMachineScheduler.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp b/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
index bd3a633987be..004a3cb185d6 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
+++ b/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
@@ -618,11 +618,8 @@ void SIScheduleBlock::printDebug(bool full) {
 
 // SIScheduleBlockCreator //
 
-SIScheduleBlockCreator::SIScheduleBlockCreator(SIScheduleDAGMI *DAG) :
-DAG(DAG) {
-}
-
-SIScheduleBlockCreator::~SIScheduleBlockCreator() = default;
+SIScheduleBlockCreator::SIScheduleBlockCreator(SIScheduleDAGMI *DAG)
+    : DAG(DAG) {}
 
 SIScheduleBlocks
 SIScheduleBlockCreator::getBlocks(SISchedulerBlockCreatorVariant BlockVariant) {

diff  --git a/llvm/lib/Target/AMDGPU/SIMachineScheduler.h b/llvm/lib/Target/AMDGPU/SIMachineScheduler.h
index c28a7be4d03a..ec450a316467 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineScheduler.h
+++ b/llvm/lib/Target/AMDGPU/SIMachineScheduler.h
@@ -248,7 +248,6 @@ class SIScheduleBlockCreator {
 
 public:
   SIScheduleBlockCreator(SIScheduleDAGMI *DAG);
-  ~SIScheduleBlockCreator();
 
   SIScheduleBlocks
   getBlocks(SISchedulerBlockCreatorVariant BlockVariant);


        


More information about the llvm-commits mailing list