diff options
author | Philip Reames <preames@rivosinc.com> | 2022-11-18 09:52:01 -0800 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2022-11-18 09:56:55 -0800 |
commit | 18fda867f4777adbcb3ebfeaaeadeb46fc8c3157 (patch) | |
tree | a45ecc037581a0e3e9320290bda7716a79461014 /llvm/lib/Support/Unix/Program.inc | |
parent | 98e342dca23729dd4e9cdc5f25c647d617b94283 (diff) | |
download | llvm-18fda867f4777adbcb3ebfeaaeadeb46fc8c3157.zip llvm-18fda867f4777adbcb3ebfeaaeadeb46fc8c3157.tar.gz llvm-18fda867f4777adbcb3ebfeaaeadeb46fc8c3157.tar.bz2 |
[RISCV] Optimize scalable frame offset calculation when VLEN is precisely known
When we have a precisely known VLEN, we can replace runtime usage of VLENB with compile time constants. This converts offsets involving both fixed and scalable components into fixed offsets. The result is that we avoid the csr read of vlenb, and can often fold the multiply as well.
Differential Revision: https://reviews.llvm.org/D137591
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
0 files changed, 0 insertions, 0 deletions