linux/scripts/coccinelle
Julia Lawall 937c812dfc 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>
2017-11-16 08:56:42 +09:00
..
api coccinelle: api: detect identical chip data arrays 2017-11-14 23:19:03 +09:00
free coccinelle: catch krealloc() on devm_*() allocated memory 2016-06-21 11:43:32 +02:00
iterators coccinelle: use exists to improve efficiency 2017-11-14 23:21:16 +09:00
locks Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
misc coccinelle: orplus: reorganize to improve performance 2017-11-16 08:56:42 +09:00
null coccinelle: grep Options and Requires fields more precisely 2017-11-14 23:19:04 +09:00
tests coccinelle: tests: unsigned value cannot be lesser than zero 2016-01-12 17:47:47 +01:00