Skip to content

Commit 610ce39

Browse files
kazutakahiratakrishna2803
authored andcommitted
[CodeGen] Remove an unnecessary cast (NFC) (llvm#151280)
LoopValStage is already of int.
1 parent 30a20e2 commit 610ce39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/ModuloSchedule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ void ModuloScheduleExpander::generateExistingPhis(
423423
// potentially define two values.
424424
unsigned MaxPhis = PrologStage + 2;
425425
if (!InKernel && (int)PrologStage <= LoopValStage)
426-
MaxPhis = std::max((int)MaxPhis - (int)LoopValStage, 1);
426+
MaxPhis = std::max((int)MaxPhis - LoopValStage, 1);
427427
unsigned NumPhis = std::min(NumStages, MaxPhis);
428428

429429
Register NewReg;

0 commit comments

Comments
 (0)