[llvm] [RISCV] Remove unecessary early exit in transferBefore (PR #74040)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 07:58:11 PST 2023


================
@@ -221,7 +221,7 @@ define i1 @extractelt_v64i1(ptr %x, i64 %idx) nounwind {
 ; RV64-NEXT:    vsetvli zero, a2, e8, m4, ta, ma
 ; RV64-NEXT:    vle8.v v8, (a0)
 ; RV64-NEXT:    vmseq.vi v12, v8, 0
-; RV64-NEXT:    vsetivli zero, 1, e64, m1, ta, ma
+; RV64-NEXT:    vsetvli zero, a2, e64, m1, ta, ma
----------------
lukel97 wrote:

We're preserving the AVL here but changing the VTYPE, which is in theory the minimal change needed to get the correct state. This looks like a case where the postpass could be replacing it with 1 to reduce the live range

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


More information about the llvm-commits mailing list