[PATCH] D137591: [RISCV] Optimize scalable frame offset calculation when VLEN is precisely known
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 07:48:51 PST 2022
reames added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/rvv/rv64-spill-vector-csr.ll:98
+; SPILL-O2-VLEN128-NEXT: vfadd.vv v9, v8, v9
+; SPILL-O2-VLEN128-NEXT: addi a0, sp, 144
+; SPILL-O2-VLEN128-NEXT: vs1r.v v9, (a0) # Unknown-size Folded Spill
----------------
The offset here is wrong. I missed a factor of 8 divide in my code which exists in the original getVLENFactoredAmount path. It's not really clear to me where that factor comes from, but what's here is definitely wrong in this test. Updated version forthcoming.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137591/new/
https://reviews.llvm.org/D137591
More information about the llvm-commits
mailing list