Skip to content

Commit

Permalink
[MCA] Modernize StallInfo (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Jun 3, 2023
1 parent 87709b7 commit b48ebad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/include/llvm/MCA/Stages/InOrderIssueStage.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ struct StallInfo {
};

InstRef IR;
unsigned CyclesLeft;
StallKind Kind;
unsigned CyclesLeft = 0;
StallKind Kind = StallKind::DEFAULT;

StallInfo() : CyclesLeft(), Kind(StallKind::DEFAULT) {}
StallInfo() = default;

StallKind getStallKind() const { return Kind; }
unsigned getCyclesLeft() const { return CyclesLeft; }
Expand Down

0 comments on commit b48ebad

Please sign in to comment.