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

Simeon K via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 29 02:09: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
----------------
simeonkr wrote:

This was due to a use by an instruction which was marked for deletion. Unfortunately, to account for such cases I needed to make `ToDelete` a `SmallPtrSet` so that I could quickly discard instructions added to this set: https://github.com/llvm/llvm-project/pull/67144/commits/e8f2fbe5904f9fb58a75e8ca7c5e82c4a11f3c1c

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


More information about the llvm-commits mailing list