[PATCH] D153098: [AArch64] Emit fewer CFI instructions for synchronous unwind tables
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 16 17:52:37 PDT 2023
MaskRay added inline comments.
================
Comment at: llvm/test/CodeGen/AArch64/addsub-constant-folding.ll:363
; CHECK-NEXT: sub sp, sp, #32
-; CHECK-NEXT: .cfi_def_cfa_offset 32
; CHECK-NEXT: str x30, [sp, #16] // 8-byte Folded Spill
+; CHECK-NEXT: .cfi_def_cfa_offset 32
----------------
ikudrin wrote:
> MaskRay wrote:
> > `.cfi_def_cfa_offset 32` move like this seems unnecessary. It degrades precision without reducing the number of CFI instructions for sync.
> The goal is to reduce the size of the unwind table, not just the number of CFI instructions. Having only one chunk removes `DWA_CFA_advance_loc` instructions that would otherwise be required.
Yes, the goal is fine. However, when the number of instructions does not change, it would be better not to degrade the precision by moving `.cfi_def_cfa_offset`...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153098/new/
https://reviews.llvm.org/D153098
More information about the llvm-commits
mailing list