[all-commits] [llvm/llvm-project] 7093c8: [DebugInfo][InstrRef][X86] Instrument expanded DYN...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Tue Nov 30 04:09:04 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7093c8101033cc104ce79e8871ac0fb9b70b28c3
      https://github.com/llvm/llvm-project/commit/7093c8101033cc104ce79e8871ac0fb9b70b28c3
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86DynAllocaExpander.cpp
    M llvm/lib/Target/X86/X86FrameLowering.cpp
    M llvm/lib/Target/X86/X86FrameLowering.h
    A llvm/test/DebugInfo/X86/instr-ref-dyn-alloca-win32.ll
    A llvm/test/DebugInfo/X86/instr-ref-dyn-alloca.ll

  Log Message:
  -----------
  [DebugInfo][InstrRef][X86] Instrument expanded DYN_ALLOCAs

If we have a DYN_ALLOCA_* instruction, it will eventually be expanded to a
stack probe and subtract-from-SP. Add debug-info instrumentation to
X86FrameLowering::emitStackProbe so that it can redirect debug-info for the
DYN_ALLOCA to the lowered stack probe. In practice, this means putting an
instruction number label either the call instruction to _chkstk for win32,
or more commonly on the subtract from SP instruction. The two tests added
cover both of these cases.

Differential Revision: https://reviews.llvm.org/D114452




More information about the All-commits mailing list