diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-03-29 13:40:05 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-03-29 13:40:05 +0000 |
commit | 800b12f90a43d83d17a0e31ad09983033b6789af (patch) | |
tree | 0af705e2125d2cc960a704f2c0a73cc72fb3825c /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | 881bcbe09471c9e6ae70228cf9754d568ac8e350 (diff) | |
download | bcm5719-llvm-800b12f90a43d83d17a0e31ad09983033b6789af.tar.gz bcm5719-llvm-800b12f90a43d83d17a0e31ad09983033b6789af.zip |
Switch lowering: exploit unreachable fall-through when lowering case range cluster
In the example below, we would previously emit two range checks, one for cases
1--3 and one for 4--6. This patch makes us exploit the fact that the
fall-through is unreachable and only one range check is necessary.
switch i32 %i, label %default [
i32 1, label %bb1
i32 2, label %bb1
i32 3, label %bb1
i32 4, label %bb2
i32 5, label %bb2
i32 6, label %bb2
]
default: unreachable
llvm-svn: 357252
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions