diff options
author | James Molloy <james.molloy@arm.com> | 2016-08-31 10:46:39 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2016-08-31 10:46:39 +0000 |
commit | 8e69b032e5e13e1f8f9ebd8e1ee20643b6e6bf8b (patch) | |
tree | df234f088e9575a41d1f709fd721764216222701 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py | |
parent | c53b40b5096597d54c968c8ab07495225b67b97a (diff) | |
download | bcm5719-llvm-8e69b032e5e13e1f8f9ebd8e1ee20643b6e6bf8b.tar.gz bcm5719-llvm-8e69b032e5e13e1f8f9ebd8e1ee20643b6e6bf8b.zip |
[SimplifyCFG] Improve FoldValueComparisonIntoPredecessors to handle more cases
A very important case is not handled here: multiple arcs to a single block with a PHI. Consider:
a:
%1 = icmp %b, 1
br %1, label %c, label %e
c:
%2 = icmp %b, 2
br %2, label %d, label %e
d:
br %e
e:
phi [0, %a], [1, %c], [2, %d]
FoldValueComparisonIntoPredecessors will refuse to fold this, as it doesn't know how to deal with two arcs to a common destination with different PHI values. The answer is obvious - just split all conflicting arcs.
llvm-svn: 280218
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py')
0 files changed, 0 insertions, 0 deletions