[PATCH] D137591: [RISCV] Optimize scalable frame offset calculation when VLEN is precisely known

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 15:00:54 PST 2022


kito-cheng added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/rv64-spill-vector-csr.ll:90
+; SPILL-O2-VLEN128-NEXT:    sd s0, 16(sp) # 8-byte Folded Spill
+; SPILL-O2-VLEN128-NEXT:    csrr a1, vlenb
+; SPILL-O2-VLEN128-NEXT:    slli a1, a1, 1
----------------
kito-cheng wrote:
> I thought there should not appear any read vlenb here? since according the description I expect we could just use 256 here?
my bad, it's separated patch, I saw https://reviews.llvm.org/D137593 now


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137591/new/

https://reviews.llvm.org/D137591



More information about the llvm-commits mailing list