[all-commits] [llvm/llvm-project] 55a1d9: [BOLT][DWARF] Always use new low_pc for call_site

Alexander Yermolovich via All-commits all-commits at lists.llvm.org
Tue Aug 8 18:21:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55a1d959a5e97abf946a1bb8a7217a5790a8ff3e
      https://github.com/llvm/llvm-project/commit/55a1d959a5e97abf946a1bb8a7217a5790a8ff3e
  Author: Alexander Yermolovich <ayermolo at meta.com>
  Date:   2023-08-08 (Tue, 08 Aug 2023)

  Changed paths:
    M bolt/lib/Rewrite/DWARFRewriter.cpp
    A bolt/test/X86/Inputs/dwarf4-df-call-site-change-low-pc-helper.s
    A bolt/test/X86/Inputs/dwarf4-df-call-site-change-low-pc-main.s
    A bolt/test/X86/Inputs/dwarf5-df-call-site-change-low-pc-helper.s
    A bolt/test/X86/Inputs/dwarf5-df-call-site-change-low-pc-main.s
    A bolt/test/X86/dwarf4-df-call-site-change-low-pc.test
    A bolt/test/X86/dwarf5-df-call-site-change-low-pc.test

  Log Message:
  -----------
  [BOLT][DWARF] Always use new low_pc for call_site

Changed to creating a new index all the time. This code was legacy of when we
couldn't change the size of .debug_info, and led to subtle bugs where index for
new entries was pointing to a wrong address.

Reviewed By: Amir

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




More information about the All-commits mailing list