summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@jrtc27.com>2025-07-30 17:10:46 +0100
committerJessica Clarke <jrtc27@jrtc27.com>2025-07-30 17:10:46 +0100
commit66393c8ec645d9121f2b3e53708b0379a113aa02 (patch)
treef2a740bc8ada2dde8506ea87bb6014a9b3722433 /llvm/lib/CodeGen/ModuloSchedule.cpp
parent7e3a1d92899336f57a6af737c9641468a1dd19b3 (diff)
parent3e93964b896023b1006d3c878effb68203d4d8dd (diff)
Created using spr 1.3.5
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;