summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2019-08-02 18:06:54 +0000
committerAlina Sbirlea <asbirlea@google.com>2019-08-02 18:06:54 +0000
commit5545e6963f24ce1ac654d0e66ed64086c975c2f5 (patch)
treeae4901c0c2b98d8d45f968b3e8ee2271ac743598 /lldb/packages/Python/lldbsuite/test
parentf7d9c43a4a50fddaf56e442f16eaf0f508745a39 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud