X86, AArch64, ARM: Do not attach debug location to spill/reload instructions
authorMatthias Braun <matze@braunis.de>
Fri, 5 Oct 2018 22:00:13 +0000 (22:00 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 5 Oct 2018 22:00:13 +0000 (22:00 +0000)
commit81578e9f77f84ae1174ef1f03d3f07789019ab22
tree7999bc736f32e49ea5929def69703cee5e442a4b
parentdf7929676dacf443f7cbc6d215272a793ea2b569
X86, AArch64, ARM: Do not attach debug location to spill/reload instructions

This rebases and recommits r343520. hwasan should be fixed now and this
shouldn't break the tests anymore.

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: 343895
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/test/DebugInfo/X86/fission-ranges.ll
llvm/test/DebugInfo/X86/parameters.ll