Skip to content

Commit 78dea4c

Browse files
committed
[AMDGPU] Use bool literals for bools. NFC.
1 parent 63a1242 commit 78dea4c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class PipelineSolver {
311311
uint64_t BranchesExplored = 0;
312312

313313
// The direction in which we process the candidate SchedGroups per SU
314-
bool IsBottomUp = 1;
314+
bool IsBottomUp = true;
315315

316316
// Update indices to fit next conflicting instruction
317317
void advancePosition();
@@ -365,7 +365,7 @@ class PipelineSolver {
365365

366366
PipelineSolver(DenseMap<int, SmallVector<SchedGroup, 4>> &SyncedSchedGroups,
367367
DenseMap<int, SUnitsToCandidateSGsMap> &SyncedInstrs,
368-
ScheduleDAGMI *DAG, bool IsBottomUp = 1)
368+
ScheduleDAGMI *DAG, bool IsBottomUp = true)
369369
: DAG(DAG), SyncedInstrs(SyncedInstrs),
370370
SyncedSchedGroups(SyncedSchedGroups), IsBottomUp(IsBottomUp) {
371371

@@ -858,7 +858,7 @@ class IGLPStrategy {
858858
virtual bool shouldApplyStrategy(ScheduleDAGInstrs *DAG,
859859
AMDGPU::SchedulingPhase Phase) = 0;
860860

861-
bool IsBottomUp = 1;
861+
bool IsBottomUp = true;
862862

863863
IGLPStrategy(ScheduleDAGInstrs *DAG, const SIInstrInfo *TII)
864864
: DAG(DAG), TII(TII) {}
@@ -881,7 +881,7 @@ class MFMASmallGemmOpt final : public IGLPStrategy {
881881

882882
MFMASmallGemmOpt(ScheduleDAGInstrs *DAG, const SIInstrInfo *TII)
883883
: IGLPStrategy(DAG, TII) {
884-
IsBottomUp = 1;
884+
IsBottomUp = true;
885885
}
886886
};
887887

@@ -1350,7 +1350,7 @@ class MFMAExpInterleaveOpt final : public IGLPStrategy {
13501350

13511351
MFMAExpInterleaveOpt(ScheduleDAGInstrs *DAG, const SIInstrInfo *TII)
13521352
: IGLPStrategy(DAG, TII) {
1353-
IsBottomUp = 0;
1353+
IsBottomUp = false;
13541354
}
13551355
};
13561356

@@ -2061,7 +2061,7 @@ class MFMASmallGemmSingleWaveOpt final : public IGLPStrategy {
20612061

20622062
MFMASmallGemmSingleWaveOpt(ScheduleDAGInstrs *DAG, const SIInstrInfo *TII)
20632063
: IGLPStrategy(DAG, TII) {
2064-
IsBottomUp = 0;
2064+
IsBottomUp = false;
20652065
}
20662066
};
20672067

@@ -2371,7 +2371,7 @@ class IGroupLPDAGMutation : public ScheduleDAGMutation {
23712371
// created SchedGroup first, and will consider that as the ultimate
23722372
// predecessor group when linking. TOP_DOWN instead links and processes the
23732373
// first created SchedGroup first.
2374-
bool IsBottomUp = 1;
2374+
bool IsBottomUp = true;
23752375

23762376
// The scheduling phase this application of IGLP corresponds with.
23772377
AMDGPU::SchedulingPhase Phase = AMDGPU::SchedulingPhase::Initial;

0 commit comments

Comments
 (0)