[all-commits] [llvm/llvm-project] 11f52f: [BOLT][DWARF] Fix invalid address ranges (#71474)
Maksim Panchenko via All-commits
all-commits at lists.llvm.org
Thu Nov 9 09:56:03 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 11f52f783a64acef671a2b1648a40ba683ad4717
https://github.com/llvm/llvm-project/commit/11f52f783a64acef671a2b1648a40ba683ad4717
Author: Maksim Panchenko <maks at fb.com>
Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths:
M bolt/lib/Core/BinaryFunction.cpp
A bolt/test/X86/dwarf-inline-range.s
Log Message:
-----------
[BOLT][DWARF] Fix invalid address ranges (#71474)
When NOP instructions are removed by BOLT and a DWARF address range
falls past the removed instructions, it may lead to invalid DWARF ranges
in the output binary. E.g. the range may fall outside of the basic block
boundaries.
This fix makes sure the modified range fits within the containing basic
block. A proper fix requires tracking instructions within the block and
will come in a different PR.
More information about the All-commits
mailing list