[llvm] [RISCV] Improve cleanup phase of RISCV Insert VSETVLI pass (PR #67144)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 20:02:46 PDT 2023


================
@@ -329,9 +329,9 @@ entry:
 define double @test17(i64 %avl, <vscale x 1 x double> %a, <vscale x 1 x double> %b) nounwind {
 ; CHECK-LABEL: test17:
 ; CHECK:       # %bb.0: # %entry
-; CHECK-NEXT:    vsetvli a0, a0, e64, m1, ta, ma
-; CHECK-NEXT:    vfmv.f.s fa5, v8
+; CHECK-NEXT:    vsetvli a0, a0, e32, mf2, ta, ma
----------------
wangpc-pp wrote:

This can be removed too? It just sets `vl`, `vtype` will be changed by `vsetvli` below.

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


More information about the llvm-commits mailing list