[all-commits] [llvm/llvm-project] 133e25: [DebugInfo][InstrRef] Ignore SP clobbers on call i...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Wed Nov 24 09:26:30 PST 2021


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

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    M llvm/test/DebugInfo/X86/dbg-addr.ll

  Log Message:
  -----------
  [DebugInfo][InstrRef] Ignore SP clobbers on call instructions even more

Avoid un-necessarily recreating DBG_VALUEs on call instructions.

In LiveDebugvalues we choose to ignore any clobbers of SP by call
instructions, as they're irrelevant to our model of the machine. We
currently do so for tracking register values (MTracker); do the same for
tracking variable locations (TTracker).

Test modified to endure that a duplicate DBG_VALUE is not created after the
call in struction in this test.

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




More information about the All-commits mailing list