[Cocci] [PATCH v2] coccinelle: orplus: reorganize to improve performance
yamada.masahiro at socionext.com
Thu Nov 16 01:03:49 CET 2017
2017-11-13 14:53 GMT+09:00 Julia Lawall <julia.lawall at lip6.fr>:
> 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 at lip6.fr>
> v2: added SOB and fixed typos in the commit message
Applied to linux-kbuild/misc. Thanks!
More information about the Cocci