diff options
author | Chuang-Yu Cheng <cycheng@multicorewareinc.com> | 2016-06-24 01:59:00 +0000 |
---|---|---|
committer | Chuang-Yu Cheng <cycheng@multicorewareinc.com> | 2016-06-24 01:59:00 +0000 |
commit | 68f7f1cf00a0405446fe765d2ed6e583a6e5947b (patch) | |
tree | 97a6dbe9c41b67e00d60c5faf2169dff11ae3def /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | b19924a425edc9ff045fd20c794a6ec9917ba824 (diff) | |
download | bcm5719-llvm-68f7f1cf00a0405446fe765d2ed6e583a6e5947b.tar.gz bcm5719-llvm-68f7f1cf00a0405446fe765d2ed6e583a6e5947b.zip |
Teaching SimplifyCFG to recognize the Or-Mask trick that InstCombine uses to
reduce the number of comparisons.
Specifically, InstCombine can turn:
(i == 5334 || i == 5335)
into:
((i | 1) == 5335)
SimplifyCFG was already able to detect the pattern:
(i == 5334 || i == 5335)
to:
((i & -2) == 5334)
This patch supersedes D21315 and resolves PR27555
(https://llvm.org/bugs/show_bug.cgi?id=27555).
Thanks to David and Chandler for the suggestions!
Author: Thomas Jablin (tjablin)
Reviewers: majnemer chandlerc halfdan cycheng
http://reviews.llvm.org/D21397
llvm-svn: 273639
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions