[all-commits] [llvm/llvm-project] 8ea5ea: [MISched] Fix off-by-one error in debug output wit...

Cullen Rhodes via All-commits all-commits at lists.llvm.org
Tue May 6 03:12:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ea5eacea263ed5c2c4b0950a4d1d6ef863444bc
      https://github.com/llvm/llvm-project/commit/8ea5eacea263ed5c2c4b0950a4d1d6ef863444bc
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/lib/CodeGen/MachineScheduler.cpp
    M llvm/test/CodeGen/AArch64/misched-cutoff.mir

  Log Message:
  -----------
  [MISched] Fix off-by-one error in debug output with -misched-cutoff=<n> flag (#137988)

This flag instructs the scheduler to stop scheduling after N
instructions, but
in the debug output it appears as if it's scheduling N+1 instructions,
e.g.

$ llc -misched-cutoff=10 -debug-only=machine-scheduler
example.ll 2>&1 | grep "^Scheduling SU" | wc -l
11

as it calls pickNode before calling checkSchedLimit.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list