RegPressure: Fix crash on blocks with only dbg_value
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 27 Mar 2019 18:14:02 +0000 (18:14 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 27 Mar 2019 18:14:02 +0000 (18:14 +0000)
commit2e9ddcc30e846687c9c0112d3ae32acccc9757bb
treeb654e744a20f8be6bf3993f19493beaaeb03dbca
parent24812d8ac42e0c11f9c185282e4e4cc1d9b067a6
RegPressure: Fix crash on blocks with only dbg_value

If there were only dbg_values in the block, recede would hit the
beginning of the block and try to use thet dbg_value as a real
instruction.

llvm-svn: 357105
llvm/lib/CodeGen/RegisterPressure.cpp
llvm/test/CodeGen/AMDGPU/debug-value-scheduler-crash.mir [new file with mode: 0644]