[llvm] 7975641 - [MCA] Modernize Stage (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 3 11:01:32 PDT 2023


Author: Kazu Hirata
Date: 2023-06-03T11:01:18-07:00
New Revision: 797564104a6e45fc462d75ef748b1bd0af040e09

URL: https://github.com/llvm/llvm-project/commit/797564104a6e45fc462d75ef748b1bd0af040e09
DIFF: https://github.com/llvm/llvm-project/commit/797564104a6e45fc462d75ef748b1bd0af040e09.diff

LOG: [MCA] Modernize Stage (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/MCA/Stages/Stage.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MCA/Stages/Stage.h b/llvm/include/llvm/MCA/Stages/Stage.h
index 2477b9b3d69c2..a1fc7a8af7ad6 100644
--- a/llvm/include/llvm/MCA/Stages/Stage.h
+++ b/llvm/include/llvm/MCA/Stages/Stage.h
@@ -25,7 +25,7 @@ namespace mca {
 class InstRef;
 
 class Stage {
-  Stage *NextInSequence;
+  Stage *NextInSequence = nullptr;
   std::set<HWEventListener *> Listeners;
 
   Stage(const Stage &Other) = delete;
@@ -35,7 +35,7 @@ class Stage {
   const std::set<HWEventListener *> &getListeners() const { return Listeners; }
 
 public:
-  Stage() : NextInSequence(nullptr) {}
+  Stage() = default;
   virtual ~Stage();
 
   /// Returns true if it can execute IR during this cycle.


        


More information about the llvm-commits mailing list