diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-08-02 18:06:54 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-08-02 18:06:54 +0000 |
commit | 5545e6963f24ce1ac654d0e66ed64086c975c2f5 (patch) | |
tree | ae4901c0c2b98d8d45f968b3e8ee2271ac743598 /lldb/packages/Python/lldbsuite/test | |
parent | f7d9c43a4a50fddaf56e442f16eaf0f508745a39 (diff) | |
download | bcm5719-llvm-5545e6963f24ce1ac654d0e66ed64086c975c2f5.tar.gz bcm5719-llvm-5545e6963f24ce1ac654d0e66ed64086c975c2f5.zip |
[SimplifyCFG] Cleanup redundant conditions [NFC].
Summary:
Since the for loop iterates over BB's predecessors, the branch conditions found must have BB as one of the successors.
For an unconditional branch the successor must be BB, added `assert`.
For a conditional branch, one of the two successors must be BB, simplify `else if` to `else` and `assert`.
Sink common instructions outside the if/else block.
Reviewers: sanjoy.google
Subscribers: jlebar, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65596
llvm-svn: 367699
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions