linux/scripts/coccinelle/misc
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
..
array_size.cocci Coccinelle: array_size: reduce rule applicability 2016-02-18 22:06:28 +01:00
badty.cocci Coccinelle: reduce rule applicability 2016-02-18 22:05:30 +01:00
boolconv.cocci Coccinelle: Add misc/boolconv.cocci 2016-12-11 12:07:00 +01:00
boolinit.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
boolreturn.cocci coccinelle: replace 0/1 with false/true in functions returning bool 2013-08-13 22:43:41 +02:00
bugon.cocci coccinelle: bugon: reduce rule applicability 2016-02-18 22:09:40 +01:00
cond_no_effect.cocci Coccinelle: flag conditions with no effect 2016-10-11 09:57:17 +02:00
cstptr.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
doubleinit.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
ifaddr.cocci coccinelle: ifaddr: Fix the sentence 2015-05-20 14:01:41 +08:00
ifcol.cocci Coccinelle: use false positive annotation 2017-11-14 23:19:04 +09:00
irqf_oneshot.cocci Coccinelle: misc: Add support for devm variant in all modes 2016-12-11 12:08:26 +01:00
noderef.cocci Coccinelle: noderef: Add new rules and correct the old rule 2016-06-20 17:20:13 +02:00
of_table.cocci coccinelle: Improve checking for missing NULL terminators 2015-10-26 22:44:51 +01:00
orplus.cocci coccinelle: orplus: reorganize to improve performance 2017-11-16 08:56:42 +09:00
returnvar.cocci coccinelle: returnvar: Use imperative mood 2015-05-20 14:01:41 +08:00
semicolon.cocci scripts/coccinelle/misc/semicolon.cocci: Use imperative mood 2015-05-21 14:14:41 +08:00
warn.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00