diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-10-04 17:18:49 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-10-04 17:18:49 +0000 |
commit | aa728f1afa30afbd6aa4c0d9b2712c4e78f66cbe (patch) | |
tree | 782900d15e8a1039c4c8f0f2c577b9ac39182203 /lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py | |
parent | bd7718ec268ef900f0af9fdb795ebf095821d2d9 (diff) | |
download | bcm5719-llvm-aa728f1afa30afbd6aa4c0d9b2712c4e78f66cbe.tar.gz bcm5719-llvm-aa728f1afa30afbd6aa4c0d9b2712c4e78f66cbe.zip |
[clangd] Dex: FALSE iterator, peephole optimizations, fix AND bug
Summary:
The FALSE iterator will be used in a followup patch to fix a logic bug in Dex
(currently, tokens that don't have posting lists in the index are simply dropped
from the query, changing semantics).
It can usually be optimized away, so added the following opmitizations:
- simplify booleans inside AND/OR
- replace effectively-empty AND/OR with booleans
- flatten nested AND/ORs
While working on this, found a bug in the AND iterator: its constructor sync()
assumes that ReachedEnd is set if applicable, but the constructor never sets it.
This crashes if a non-first iterator is nonempty.
Reviewers: ilya-biryukov
Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D52789
llvm-svn: 343801
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py')
0 files changed, 0 insertions, 0 deletions