[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 07:48:20 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:

Please provide a schematic diagram for the calculation of stall cycles.

https://github.com/llvm/llvm-project/pull/99451


More information about the llvm-commits mailing list