[PATCH] D79978: Call Frame Information (CFI) Handling for Basic Block Sections

Sriraman Tallam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 21:41:10 PDT 2020


tmsriram added inline comments.


================
Comment at: llvm/lib/Target/X86/X86FrameLowering.cpp:488-490
+  MachineFunction &MF = *MBB.getParent();
+  if (!hasFP(MF))
+    return;
----------------
wmi wrote:
> .cfi_offset directive for framepointer is inserted after other .cfi_offset directives for callee save registers. This is different from the .cfi_offset order inserted for prologue. I am not familiar with how the dedup cfi is implemented. A question is will the order difference reduce the chance of deduplicating cfi in prologue?  
I fixed the order and checked that dedup works just fine.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79978/new/

https://reviews.llvm.org/D79978





More information about the llvm-commits mailing list