diff options
author | Kazu Hirata <kazu@google.com> | 2025-07-30 07:30:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-30 07:30:05 -0700 |
commit | 5672a8723f98ac531644ae3f8fe182d11d781cb1 (patch) | |
tree | a7454fc0b4b0ba2b2bef6ed39e170e3a28b8fa85 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | c6a376371d1fa1a00a0f7e41a271c0688c1e15f2 (diff) | |
download | llvm-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.cpp | 2 |
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; |