[GlobalISel] Remove debug locations when emitting constants.
authorDavide Italiano <ditaliano@apple.com>
Mon, 27 Apr 2020 18:24:36 +0000 (11:24 -0700)
committerDavide Italiano <ditaliano@apple.com>
Mon, 27 Apr 2020 18:27:08 +0000 (11:27 -0700)
commitc8433a5b1b9c17659b2f6f024652ab5270c6c184
tree10c6b8326b9a27399c2470ab5a251dada7972f03
parentfd624e623d34dd0e812b7fdce73bdff15f456826
[GlobalISel] Remove debug locations when emitting constants.

The tl;dr story is that this causes jumps in the emitted line
tables, even at `-O0`. We could at some point consider more fancy
solutions to preserve locations, but it doesn't seem to be worth
the effort for now.

<rdar://problem/62460788>

Differential Revision:  https://reviews.llvm.org/D78947
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
llvm/test/CodeGen/AArch64/GlobalISel/constant-dbg-loc.ll