[llvm-branch-commits] [llvm] [RISCV] Schedule RVV instructions with compatible type first (PR #95924)
Pengcheng Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 3 22:45:44 PST 2026
================
@@ -0,0 +1,677 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=riscv64 -mcpu=spacemit-x60 -verify-machineinstrs < %s \
+; RUN: | FileCheck %s --check-prefix=DEFAULT
+; RUN: llc -mtriple=riscv64 -mcpu=spacemit-x60 -misched-prera-direction=bottomup \
+; RUN: -riscv-enable-vtype-sched-heuristic -verify-machineinstrs < %s \
+; RUN: | FileCheck %s --check-prefix=VTYPE-SCHED-BOTTOMUP
+; RUN: llc -mtriple=riscv64 -mcpu=spacemit-x60 -misched-prera-direction=topdown \
+; RUN: -riscv-enable-vtype-sched-heuristic -verify-machineinstrs < %s \
+; RUN: | FileCheck %s --check-prefix=VTYPE-SCHED-TOPDOWN
+; RUN: llc -mtriple=riscv64 -mcpu=spacemit-x60 -misched-prera-direction=bidirectional \
+; RUN: -riscv-enable-vtype-sched-heuristic -verify-machineinstrs < %s \
+; RUN: | FileCheck %s --check-prefix=VTYPE-SCHED-BIDIRECTIONAL
+
+define void @test(i16 %0, i16 %1, i16 %2, i16 %3, i16 %4, i16 %5, i16 %6, ptr %7, ptr %8, ptr %9, ptr %10, ptr %11, i32 %12) {
----------------
wangpc-pp wrote:
I removed the auto-generated CHECKs and now we check the count of `vset` (to cover both `vsetivli` and `vsetvli`).
https://github.com/llvm/llvm-project/pull/95924
More information about the llvm-branch-commits
mailing list