[PATCH] D157373: [RISCV] add a compress optimization for stack inst.

lcvon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 06:42:44 PDT 2023


lcvon007 marked an inline comment as done.
lcvon007 added a comment.

For the program's performance,  it has not got obvious profit or regression(I only test them in O2 <https://reviews.llvm.org/owners/package/2/> and run with one copy about spec cpu2006), I also disassemblers each binary and see  that they 're almost same except some cases like the follows(no extra instructions generated.):  @wangpc

1. auipc + jalr => jal(optimized version)
2. li a7, 7, slli a7, a7, 0xb => lui a7, 0x4, addiw a7, a7, -528(optimized version)
3. addi a0, a0, -104 => mv a0, a0


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157373



More information about the llvm-commits mailing list