OSDN Git Service

AMDGPU: Fix crash when scheduling DBG_VALUE
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Dec 2017 03:09:23 +0000 (03:09 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Dec 2017 03:09:23 +0000 (03:09 +0000)
commita50e269370ed24af802113b93828b24cf0e59c62
treed27d29fca41960dcdcc4cfb76b5f87a39d4cbc69
parenteb94f55b0d0495d97b80889564ba787981417999
AMDGPU: Fix crash when scheduling DBG_VALUE

This calls handleMove with a DBG_VALUE instruction,
which isn't tracked by LiveIntervals. I'm not sure
this is the correct place to fix this. The generic
scheduler seems to have more deliberate region
selection that skips dbg_value.

The test is also really hard to reduce. I haven't been able
to figure out what exactly causes this particular case to
try moving the dbg_value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319732 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/GCNSchedStrategy.cpp
test/CodeGen/AMDGPU/sched-crash-dbg-value.mir [new file with mode: 0644]