[DebugInfo] Only handle DBG_VALUE in InlineSpiller.
authorShiva Chen <shiva0217@gmail.com>
Wed, 16 May 2018 02:57:26 +0000 (02:57 +0000)
committerShiva Chen <shiva0217@gmail.com>
Wed, 16 May 2018 02:57:26 +0000 (02:57 +0000)
commit21eab936d5b4d3a02ba9038f8dea80ad503b91d1
treec03e4d9f103e78441c9a9c7c87ecfe5f6d9dc389
parentbff9302c3d188954fbd6852c57bfc05419754305
[DebugInfo] Only handle DBG_VALUE in InlineSpiller.

The instructions using registers should be DBG_VALUE and normal
instructions. Use isDebugValue() to filter out DBG_VALUE and add
an assert to ensure there is no other kind of debug instructions
using the registers.

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

Patch by Hsiangkai Wang.

llvm-svn: 332427
llvm/lib/CodeGen/InlineSpiller.cpp