When the inline spiller rematerializes an instruction, take the debug location from...
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Tue, 16 Aug 2016 17:12:50 +0000 (17:12 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Tue, 16 Aug 2016 17:12:50 +0000 (17:12 +0000)
commit8df58f48dd6ec9735e52867d92db2f70dfbaa2cc
tree2ef8f6601d92373caea2eb86576d8ce7e68c15ea
parentdb68c9adbdc2ef9e15d1f24d879ab79910f6bcd1
When the inline spiller rematerializes an instruction, take the debug location from the instruction
that immediately follows the rematerialization point.

Patch by Andrea DiBiagio.

Differential Revision: http://reviews.llvm.org/D23539

llvm-svn: 278822
llvm/lib/CodeGen/InlineSpiller.cpp
llvm/test/DebugInfo/X86/rematerialize.ll [new file with mode: 0644]