aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2022-06-20 15:49:08 +0300
committerVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2022-12-05 16:38:24 +0300
commitf32cafedf053be812ba5258f8abb85413a271985 (patch)
treefe75c61dea96fa1a68f2258c26d82fa41ddfda9d /llvm/lib/CodeGen/CodeGen.cpp
parenta446827249bdeb2f27e55a9f4942bd7425ecb0ff (diff)
downloadllvm-f32cafedf053be812ba5258f8abb85413a271985.zip
llvm-f32cafedf053be812ba5258f8abb85413a271985.tar.gz
llvm-f32cafedf053be812ba5258f8abb85413a271985.tar.bz2
[GlobalISel][DebugInfo] Propagate debug location for localized constants
After IRTranslator pass, constants are deduplicated and translated into instructions at entry block, having debug locations lost. Localization of constants may cause emission of extra zero lines in debug_line section, like here https://godbolt.org/z/ecvsxxfKn. In this example, constant gets placed as a first instruction in entry block, and despite it has no debug location, AsmPrinter emits zero line for it. If a localized constant has the only user, we can assume that it has the same debug location as its user, since they are placed consequently. Differential Revision: https://reviews.llvm.org/D128192
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions