Re: [PATCH v2] coccinelle: orplus: reorganize to improve performance

From: Masahiro Yamada
Date: Wed Nov 15 2017 - 19:05:01 EST


2017-11-13 14:53 GMT+09:00 Julia Lawall <julia.lawall@xxxxxxx>:
> 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@xxxxxxx>
>
> ---
>
> v2: added SOB and fixed typos in the commit message


Applied to linux-kbuild/misc. Thanks!



--
Best Regards
Masahiro Yamada