llvm/test
Changpeng Fang ce74ac3067 AMDGPU/SI: Handle infinite loop for the structurizer to work with CFG with infinite loops.
Summary:
  The current StructurizeCFG pass only works for CFG with one exit. AMDGPUUnifyDivergentExitNodes combines multiple "return" blocks and/or "unreachable" blocks
to one exit block for the Structurizer to work. However, infinite loop is another kind of special "exit", and if we don't handle it, the case of multiple exits will prevent the structurizer from working.

In this work, for each infinite loop, we add a dummy edge to the "return" block, and thus the AMDGPUUnifyDivergentExitNodes pass will work with infinite loops.
This will make CFG with infinite loops be structurized.

Reviewer:
  nhaehnle

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332625 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-17 16:45:01 +00:00
..
Analysis [BasicAA] Fix handling of invariant group launders 2018-05-16 13:16:54 +00:00
Assembler
Bindings [LLVM-C] Add Bindings For Module Flags 2018-05-14 08:09:00 +00:00
Bitcode
BugPoint
CodeGen AMDGPU/SI: Handle infinite loop for the structurizer to work with CFG with infinite loops. 2018-05-17 16:45:01 +00:00
DebugInfo [Debugify] Tighten up the test for -debugify-each, NFC 2018-05-16 17:30:58 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [msan] Instrument masked.store, masked.load intrinsics. 2018-05-15 21:28:25 +00:00
Integer
JitListener
Linker
LTO
MC [mips] Add support for Global INValidate ASE 2018-05-17 16:30:32 +00:00
Object [WebAsembly] Update default triple in test files to wasm32-unknown-unkown. 2018-05-10 17:49:11 +00:00
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86
tools [llvm-mca][X86] Add CMOV test files 2018-05-17 16:29:12 +00:00
Transforms [InstCombine] Propagate the nsw/nuw flags from the add in the 'shifty' abs pattern to the sub in the select version. 2018-05-17 16:29:52 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh