[llvm] [RISCV][InsertVSETVLI] Remove redundant vsetvli by repeating the coalesce phase (PR #141298)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 12:10:25 PDT 2025


================
@@ -0,0 +1,84 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple=riscv64 -mattr=+v,+m,+b -run-pass=liveintervals,riscv-insert-vsetvli %s -o - | FileCheck %s
+
+--- |
+  target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
+  target triple = "riscv64"
+
+  @g0 = external global ptr
+  @coalesce.g1 = external constant [16 x ptr]
+
+  define fastcc i32 @coalesce() #0 {
+    ret i32 4
+  }
+
+  attributes #0 = { "target-features"="+v,+m,+b" }
+...
+---
+name:            coalesce
+alignment:       2
----------------
mshockwave wrote:

Removed.

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


More information about the llvm-commits mailing list