[LoongArch] Use empty debug location for register spill/reload
authorBen Shi <powerman1st@163.com>
Sat, 15 Apr 2023 04:44:30 +0000 (12:44 +0800)
committerBen Shi <powerman1st@163.com>
Sun, 16 Apr 2023 03:07:22 +0000 (11:07 +0800)
commit06fd423de16b8b362ce902704ca061556c4146b4
treebc5d49f69999be45132b9db05c614c1a11826ebf
parent9ee16eb526f7ef2e407d8fd67fed46403350ec99
[LoongArch] Use empty debug location for register spill/reload

Spill/reload instructions are automatically generated by the
compiler and have no relation to the original source code. So it
would be better to not attach any debug location to them.
The X86/AArch64/ARM/Thumb backends all follow this way.

Reviewed By: xen0n

Differential Revision: https://reviews.llvm.org/D148304
llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp