diff options
author | David Stenberg <david.stenberg@ericsson.com> | 2018-05-18 08:52:15 +0000 |
---|---|---|
committer | David Stenberg <david.stenberg@ericsson.com> | 2018-05-18 08:52:15 +0000 |
commit | 0af67e5b651b49220af5101f1592bd9a2e314c0e (patch) | |
tree | b4db302439f7c7ab1d414100eafab6f40374006c /lldb/packages/Python/lldbsuite/test | |
parent | da3f49a435004f588baa4e2bb2dd352bef753a15 (diff) | |
download | bcm5719-llvm-0af67e5b651b49220af5101f1592bd9a2e314c0e.tar.gz bcm5719-llvm-0af67e5b651b49220af5101f1592bd9a2e314c0e.zip |
[SimplifyCFG] Fix a debug invariant bug in FoldBranchToCommonDest()
Summary:
Fix a case where FoldBranchToCommonDest() would bail out from doing CSE
when encountering a debug intrinsic. Handle that by skipping past the
debug intrinsics.
Also, as a minor refactoring, rename checkCSEInPredecessor() to
tryCSEWithPredecessor() to make it a bit more clear that the function
may remove instructions.
Reviewers: fhahn, craig.topper, dblaikie, xbolva00
Reviewed By: fhahn, xbolva00
Subscribers: vsk, davide, llvm-commits
Differential Revision: https://reviews.llvm.org/D46635
llvm-svn: 332698
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions