]> granicus.if.org Git - llvm/commit
[RegisterCoalescer] Do not call getInstructionIndex with DBG_VALUE
authorBrendon Cahoon <bcahoon@codeaurora.org>
Sat, 4 Feb 2017 00:10:22 +0000 (00:10 +0000)
committerBrendon Cahoon <bcahoon@codeaurora.org>
Sat, 4 Feb 2017 00:10:22 +0000 (00:10 +0000)
commitf7dc192ed63074a692cbb399e679a696dd85ab98
tree04f6d50f0a974d6c16fb09062968e060046d8729
parent591fad19829740f23c5a85f66ebad968a3e3b91f
[RegisterCoalescer] Do not call getInstructionIndex with DBG_VALUE

An assert occurs when calling SlotIndexes::getInstructionIndex with
a DBG_VALUE instruction because the function expects an instruction
with a slot index. However, there is no slot index for a DBG_VALUE
instruction.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294070 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/AMDGPU/regcoalesce-dbg.mir [new file with mode: 0644]