[PATCH] D18046: [X86] Providing correct unwind info in function epilogue

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 5 09:50:03 PDT 2017


thegameg added a comment.

Hi Violeta,

Thanks for taking your time to answer.

In https://reviews.llvm.org/D18046#799475, @violetav wrote:

> I am not sure if I am missing something, but yes, it looks like you could do something similar for cfi_offset and cfi_restore; keep track of registers that should be saved/restored at the beginning and end of a basic block and then insert save/restore CFI instructions for appropriate registers if the basic blocks get reordered in a way that this information is no longer correct.


Yes, exactly. I'll try to merge this with your code from `CFIInstrInserter`.


Repository:
  rL LLVM

https://reviews.llvm.org/D18046





More information about the llvm-commits mailing list