[all-commits] [llvm/llvm-project] da7120: [MISched] Unify the way to specify scheduling dire...

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Wed Dec 11 19:24:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da71203e6fc6b8e08c9979204506d385e9cb07b8
      https://github.com/llvm/llvm-project/commit/da71203e6fc6b8e08c9979204506d385e9cb07b8
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineScheduler.h
    M llvm/lib/CodeGen/MachineScheduler.cpp
    M llvm/lib/CodeGen/VLIWMachineScheduler.cpp
    M llvm/test/CodeGen/AArch64/dump-schedule-trace.mir
    M llvm/test/CodeGen/AArch64/force-enable-intervals.mir
    M llvm/test/CodeGen/AArch64/misched-detail-resource-booking-01.mir
    M llvm/test/CodeGen/AArch64/misched-detail-resource-booking-02.mir
    M llvm/test/CodeGen/AArch64/misched-sort-resource-in-trace.mir
    M llvm/test/CodeGen/ARM/single-issue-r52.mir
    M llvm/test/CodeGen/RISCV/sifive7-enable-intervals.mir
    M llvm/test/CodeGen/X86/handle-move.ll
    M llvm/test/CodeGen/X86/misched-aa-colored.ll
    M llvm/test/CodeGen/X86/misched-matrix.ll
    M llvm/test/CodeGen/X86/misched-new.ll

  Log Message:
  -----------
  [MISched] Unify the way to specify scheduling direction (#119518)

For pre-ra scheduling, we use two options `-misched-topdown` and
`-misched-bottomup` to force the direction.

While for post-ra scheduling, we use `-misched-postra-direction`
with enumerated values (`topdown`, `bottomup` and `bidirectional`).

This is not unified and adds some mental burdens. Here we replace
these two options `-misched-topdown` and `-misched-bottomup` with
`-misched-prera-direction` with the same enumerated values.

To avoid the condition of `getNumOccurrences() > 0`, we add a new
enum value `Unspecified` and make it the default initial value.

These options are hidden, so we needn't keep the compatibility.



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