AMDGPU: Fix analyzeBranch failing with pseudoterminators
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 16 Nov 2018 05:03:02 +0000 (05:03 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 16 Nov 2018 05:03:02 +0000 (05:03 +0000)
commiteabb8dd01547c6fcccb7dcbba7a4a3b8ba67694c
treed48d5a2445946773638ecfa08dc37f9f9b254cc2
parentd63e84621222c78283451bc3616e4c9d8317802e
AMDGPU: Fix analyzeBranch failing with pseudoterminators

If a block had one of the _term instructions used for gluing
exec modifying instructions to the end of the block,
analyzeBranch would fail, preventing the verifier from catching
a broken successor list.

llvm-svn: 347027
llvm/lib/Target/AMDGPU/SIInsertSkips.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/verifier-pseudo-terminators.mir [new file with mode: 0644]