X86, AArch64, ARM: Do not attach debug location to spill/reload instructions
authorMatthias Braun <matze@braunis.de>
Mon, 1 Oct 2018 18:56:39 +0000 (18:56 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 1 Oct 2018 18:56:39 +0000 (18:56 +0000)
commit3e081703c349dd00b8ef6991c2d15964915dd8f4
treeefed1cdd7476a56a448b0204cc296e5ea3949e40
parent1346b5b7cf0037291f52213ed3d82b38f2ee13fe
X86, AArch64, ARM: Do not attach debug location to spill/reload instructions

Spill/reload instructions are artificially generated by the compiler and
have no relation to the original source code. So the best thing to do is
not attach any debug location to them (instead of just taking the next
debug location we find on following instructions).

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

llvm-svn: 343520
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/test/CodeGen/AArch64/spill-debuginfo.mir [new file with mode: 0644]
llvm/test/DebugInfo/X86/fission-ranges.ll
llvm/test/DebugInfo/X86/parameters.ll