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

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 10:24:05 PDT 2020


wmi added inline comments.


================
Comment at: llvm/lib/MC/MCDwarf.cpp:1501
+/// is useful in general but the opportunities to dedup are lesser.
+static bool ShouldBeDeduped(const MCCFIInstruction &Instr,
+                            const MCSymbol *BaseLabel,
----------------
Could you explain a little about how you decide which instructions can be deduped? I see the code is comparing the label of each CFI instruction with the label of the first CFI instruction in the frame. What is the meaning of the label? When those CFI intructions are created in CFIInstrInserter, the labels are initialized to nullptr.


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

https://reviews.llvm.org/D79978





More information about the llvm-commits mailing list