[PATCH] D157373: [RISCV] add a compress optimization for stack inst.
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 03:04:22 PDT 2023
wangpc added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:1324
+ // Avoid increasing extra instructions when ld/st can be compressed.
+ if ((CSI.size() <= RVCompressLen) && (StackSize <= RVCompressLen + 2048 ||
+ StackSize > 2048 * 3 - StackAlign))
----------------
Do we really need this condition `(StackSize <= RVCompressLen + 2048 || StackSize > 2048 * 3 - StackAlign)`?
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