]> granicus.if.org Git - llvm/commit
[GlobalISel][IRTranslator] Add debug loc with line 0 to constants emitted into the...
authorAmara Emerson <aemerson@apple.com>
Thu, 13 Jun 2019 22:15:35 +0000 (22:15 +0000)
committerAmara Emerson <aemerson@apple.com>
Thu, 13 Jun 2019 22:15:35 +0000 (22:15 +0000)
commitebed2cc716c5259433a56dbc56eadfba01b33e0a
tree149feeca94702aaf8d42e6f4697bd2583fc94452
parentb854e64f61b1dfe12164495a3c6b7960cc536b25
[GlobalISel][IRTranslator] Add debug loc with line 0 to constants emitted into the entry block.

Constants, including G_GLOBAL_VALUE, are all emitted into the entry block which
lets us use the vreg def assuming it dominates all other users. However, it can
cause jumpy debug behaviour since the DebugLoc attached to these MIs are from
a user instruction that could be in a different block.

Fixes PR40887.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363331 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AArch64/GlobalISel/constant-dbg-loc.ll [new file with mode: 0644]
test/DebugInfo/AArch64/cfi-eof-prologue.ll