summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@jrtc27.com>2025-07-30 17:10:45 +0100
committerJessica Clarke <jrtc27@jrtc27.com>2025-07-30 17:10:45 +0100
commit3e93964b896023b1006d3c878effb68203d4d8dd (patch)
tree3f03bb1729e07cce41f0c46947ba94f877b97b41 /llvm/lib/CodeGen/ModuloSchedule.cpp
parent9da811368f7e9ab07bc9aa360eebca7f2ebcd53e (diff)
parent52ddcfd8d6c078b3e5ae3c230eea67a466d64f0f (diff)
Created using spr 1.3.5 [skip ci]
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
-rw-r--r--llvm/lib/CodeGen/ModuloSchedule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ModuloSchedule.cpp b/llvm/lib/CodeGen/ModuloSchedule.cpp
index 0f742c46fd1b..21bf052d1fda 100644
--- a/llvm/lib/CodeGen/ModuloSchedule.cpp
+++ b/llvm/lib/CodeGen/ModuloSchedule.cpp
@@ -423,7 +423,7 @@ void ModuloScheduleExpander::generateExistingPhis(
// potentially define two values.
unsigned MaxPhis = PrologStage + 2;
if (!InKernel && (int)PrologStage <= LoopValStage)
- MaxPhis = std::max((int)MaxPhis - (int)LoopValStage, 1);
+ MaxPhis = std::max((int)MaxPhis - LoopValStage, 1);
unsigned NumPhis = std::min(NumStages, MaxPhis);
Register NewReg;