[all-commits] [llvm/llvm-project] 516e5b: Resubmit D85085 after fixing the tests that were f...

Sriraman Tallam via All-commits all-commits at lists.llvm.org
Tue Jun 1 22:01:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 516e5bb2b11ea374e5a468b7fb17b0c4e9f1b863
      https://github.com/llvm/llvm-project/commit/516e5bb2b11ea374e5a468b7fb17b0c4e9f1b863
  Author: Sriraman Tallam <tmsriram at google.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loc-const-value-1.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loc-const-value-2.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loc-split-range.ll
    M llvm/test/DebugInfo/X86/basic-block-sections-debug-loc.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-1.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-2.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-3.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-4.ll
    A llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-5.ll
    M llvm/test/DebugInfo/X86/basic-block-sections_1.ll

  Log Message:
  -----------
  Resubmit D85085 after fixing the tests that were failing.

D85085 was pushed earlier but broke tests on mac and win:
http://lab.llvm.org:8080/green/job/clang-stage1-RA/21182/consoleFull#-706149783d489585b-5106-414a-ac11-3ff90657619c

Recommitting it after adding mtriple to the llc commands.

Emit correct location lists with basic block sections.

This patch addresses multiple things:

1) It ensures that const_value is emitted when possible with basic block
   sections.
2) It emits location lists such that the labels are always within the
   section boundary.
3) It fixes a bug when the parameter is first used in a non-entry block
   which is in a different section from the entry block.

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




More information about the All-commits mailing list