aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-07-30 07:30:05 -0700
committerGitHub <noreply@github.com>2025-07-30 07:30:05 -0700
commit5672a8723f98ac531644ae3f8fe182d11d781cb1 (patch)
treea7454fc0b4b0ba2b2bef6ed39e170e3a28b8fa85 /llvm/lib/CodeGen/ModuloSchedule.cpp
parentc6a376371d1fa1a00a0f7e41a271c0688c1e15f2 (diff)
downloadllvm-5672a8723f98ac531644ae3f8fe182d11d781cb1.zip
llvm-5672a8723f98ac531644ae3f8fe182d11d781cb1.tar.gz
llvm-5672a8723f98ac531644ae3f8fe182d11d781cb1.tar.bz2
[CodeGen] Remove an unnecessary cast (NFC) (#151280)
LoopValStage is already of int.
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 0f742c4..21bf052 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;