[PATCH] D13767: [X86] Fix more -Os + EH issues

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 02:03:29 PDT 2015


mkuper created this revision.
mkuper added reviewers: friss, DavidKreitzer, rnk, joerg, kbsmith1.
mkuper added a subscriber: llvm-commits.

This does two things:
1) Disables push generation on Darwin whenever EH is used and FP is not present.
2) Generates .cfa_adjust_cfa_offset directives to make the CFA offset correct at each call site.

Generating more precise offsets adjustments for debug info will be a separate patch.

http://reviews.llvm.org/D13767

Files:
  lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
  lib/Target/X86/X86CallFrameOptimization.cpp
  lib/Target/X86/X86FrameLowering.cpp
  test/CodeGen/X86/fold-push.ll
  test/CodeGen/X86/pop-stack-cleanup.ll
  test/CodeGen/X86/push-cfi-obj.ll
  test/CodeGen/X86/push-cfi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13767.37460.patch
Type: text/x-patch
Size: 13491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151015/b9ea1354/attachment.bin>


More information about the llvm-commits mailing list