[llvm] [llvm][CodeGen] Fixed a bug in stall cycle calculation for window scheduler (PR #99451)
Hua Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 18:09:30 PDT 2024
================
@@ -485,15 +485,17 @@ int WindowScheduler::calculateMaxCycle(ScheduleDAGInstrs &DAG,
// ========================================
int WindowScheduler::calculateStallCycle(unsigned Offset, int MaxCycle) {
int MaxStallCycle = 0;
+ int CurrentII = MaxCycle + 1;
----------------
huaatian wrote:
LGTM
https://github.com/llvm/llvm-project/pull/99451
More information about the llvm-commits
mailing list