diff options
author | laichunfeng <laichunfeng@tencent.com> | 2023-08-18 10:49:53 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2023-08-18 10:49:53 +0800 |
commit | 13454a6e8744e510212e750b7a7dc9da8c41943c (patch) | |
tree | 0c087997cc565949a6417a853217e19ce5fd88b5 /llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp | |
parent | 0816b3efbfaaf958a3f2e842aa3eacd525e7ae12 (diff) | |
download | llvm-13454a6e8744e510212e750b7a7dc9da8c41943c.zip llvm-13454a6e8744e510212e750b7a7dc9da8c41943c.tar.gz llvm-13454a6e8744e510212e750b7a7dc9da8c41943c.tar.bz2 |
[RISCV] Compress stack insts by adjust offset.
For callee saved/restored operations, they mostly use the
following inst patterns,
sw rs2, offset(x2)
sd rs2, offset(x2)
fsw rs2, offset(x2)
fsd rs2, offset(x2)
lw rd, offset(x2)
ld rd, offset(x2)
flw rd, offset(x2)
fld rd, offset(x2)
and offset decides whether the instructions can be compressed.
now offset 2032 will be set by default if stacksize is bigger
than 2^12-1 to save and restore callee saved register, so it
will prevent all the callee saved/restored stack insts be
compressed.
Allocating proper offset for stack insts is useful to make
them be compressed.
Reviewed By: craig.topper, wangpc
Differential Revision: https://reviews.llvm.org/D157373
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp')
0 files changed, 0 insertions, 0 deletions