summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/timeout/wait-a-while.cpp
diff options
context:
space:
mode:
authorChangpeng Fang <changpeng.fang@gmail.com>2018-05-17 16:45:01 +0000
committerChangpeng Fang <changpeng.fang@gmail.com>2018-05-17 16:45:01 +0000
commit391bcf889391f9128763674087f2ddfd82671e90 (patch)
treef1883bd89f3a27d0c1d2cd4dffc3d146a2219b0d /lldb/packages/Python/lldbsuite/test/expression_command/timeout/wait-a-while.cpp
parentdaf5169398e7605c68d61c21618e887ce4980931 (diff)
downloadbcm5719-llvm-391bcf889391f9128763674087f2ddfd82671e90.tar.gz
bcm5719-llvm-391bcf889391f9128763674087f2ddfd82671e90.zip
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 llvm-svn: 332625
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/timeout/wait-a-while.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud