diff options
author | Julia Lawall | 2017-11-13 06:53:35 +0100 |
---|---|---|
committer | Masahiro Yamada | 2017-11-16 00:56:42 +0100 |
commit | 937c812dfc0a25343d56b07734438610a1fb7b46 (patch) | |
tree | ad1f1cd178171d99fbd98e7bace9340b8f9bad13 /scripts/dtc/dtc.c | |
parent | coccinelle: use exists to improve efficiency (diff) | |
download | kernel-qcow2-linux-937c812dfc0a25343d56b07734438610a1fb7b46.tar.gz kernel-qcow2-linux-937c812dfc0a25343d56b07734438610a1fb7b46.tar.xz kernel-qcow2-linux-937c812dfc0a25343d56b07734438610a1fb7b46.zip |
coccinelle: orplus: reorganize to improve performance
Adding two #define constants is less common than performing & and |
operations on them, so put the addition first to reduce the set of cases
that have to be considered in detail. At the same time, add & and |
patterns for both arguments of +, to account for commutativity and obtain
more results.
Running time is divided by 3 when applying this to the whole kernel on my
laptop with an Intel i5-6200U CPU.
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/dtc/dtc.c')
0 files changed, 0 insertions, 0 deletions