OSDN Git Service

DivergenceAnalysis: Fix crash with unreachable blocks
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 Apr 2016 06:17:47 +0000 (06:17 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 Apr 2016 06:17:47 +0000 (06:17 +0000)
commite8448abead7e81359c76c93af875d586e53546ba
tree7edd7d0975365d0930ddb576bb4f19c26e8f972c
parente73d0289be0db6cc5a16ab3deefbacbd2b9c8a09
DivergenceAnalysis: Fix crash with unreachable blocks

Unreachable blocks may not be in the dominator tree,
so don't crash on them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268001 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DivergenceAnalysis.cpp
test/Analysis/DivergenceAnalysis/AMDGPU/unreachable-loop-block.ll [new file with mode: 0644]