[PATCH] D65817: [AArch64][WinCFI] Do not pair callee-save instructions in LoadStoreOptimizer

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 10:18:59 PDT 2019


sdesmalen created this revision.
sdesmalen added reviewers: efriedma, mstorsjo, ssijaric.
Herald added subscribers: kristof.beyls, javed.absar.

Prevent the LoadStoreOptimizer from pairing any load/store instructions with instructions from
the prologue/epilogue if the CFI information has encoded the operations as separate instructions.
This would otherwise lead to a mismatch of the actual prologue size from the size as recorded
in the Windows CFI.


https://reviews.llvm.org/D65817

Files:
  lib/Target/AArch64/AArch64InstrInfo.cpp
  test/CodeGen/AArch64/wineh1.mir
  test/CodeGen/AArch64/wineh2.mir
  test/DebugInfo/COFF/AArch64/arm64-register-variables.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65817.213646.patch
Type: text/x-patch
Size: 4240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190806/0c26742e/attachment.bin>


More information about the llvm-commits mailing list