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

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 14:10:10 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
----------------
preames wrote:

Another way to look at this is that transferBefore should chose to use the next AVL (1) since it has the choice here, and using the previous VL extends the live range.  I'm fine with this landing as is, but this might be a good follow up.  

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


More information about the llvm-commits mailing list