diff options
author | Whitney Tsang <whitney.uwaterloo@gmail.com> | 2019-07-25 16:13:18 +0000 |
---|---|---|
committer | Whitney Tsang <whitney.uwaterloo@gmail.com> | 2019-07-25 16:13:18 +0000 |
commit | 8ee361ebe5ebada5c303b9aa93fecde9e4bec02a (patch) | |
tree | 04b7746ca07bd7d2511a96c9beebbc489394f6b4 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | dbc0a5df8d5f4fb826325b4f169acb5c26250c87 (diff) | |
download | bcm5719-llvm-8ee361ebe5ebada5c303b9aa93fecde9e4bec02a.tar.gz bcm5719-llvm-8ee361ebe5ebada5c303b9aa93fecde9e4bec02a.zip |
[LOOPINFO] Introduce the loop guard API.
Summary:
This is the first patch for the loop guard. We introduced
getLoopGuardBranch() and isGuarded().
This currently only works on simplified loop, as it requires a preheader
and a latch to identify the guard.
It will work on loops of the form:
/// GuardBB:
/// br cond1, Preheader, ExitSucc <== GuardBranch
/// Preheader:
/// br Header
/// Header:
/// ...
/// br Latch
/// Latch:
/// br cond2, Header, ExitBlock
/// ExitBlock:
/// br ExitSucc
/// ExitSucc:
Prior discussions leading upto the decision to introduce the loop guard
API: http://lists.llvm.org/pipermail/llvm-dev/2019-May/132607.html
Reviewer: reames, kbarton, hfinkel, jdoerfert, Meinersbur, dmgreen
Reviewed By: reames
Subscribers: wuzish, hiraditya, jsji, llvm-commits, bmahjour, etiotto
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D63885
llvm-svn: 367033
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions