linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] simplify binops with identical operands
@ 2016-12-07 16:32 Luc Van Oostenryck
  2016-12-07 16:32 ` [PATCH 1/2] simplify '(x op x)' to '0', '1' or 'x' Luc Van Oostenryck
  2016-12-07 16:32 ` [PATCH 2/2] add warning option '-Wtautological-compare' Luc Van Oostenryck
  0 siblings, 2 replies; 3+ messages in thread
From: Luc Van Oostenryck @ 2016-12-07 16:32 UTC (permalink / raw)
  To: linux-sparse; +Cc: Christopher Li, Luc Van Oostenryck

This serie add simplification of binops and comparison where
both operands are identical, and add an optional warning for those
comparison.


Luc Van Oostenryck (2):
  simplify '(x op x)' to '0', '1' or 'x'
  add warning option '-Wtautological-compare'

 lib.c                               |  2 ++
 lib.h                               |  1 +
 simplify.c                          | 39 +++++++++++++++++++++++++++++
 validation/optim/binops-same-args.c | 49 +++++++++++++++++++++++++++++++++++++
 validation/tautological-compare.c   | 35 ++++++++++++++++++++++++++
 5 files changed, 126 insertions(+)
 create mode 100644 validation/optim/binops-same-args.c
 create mode 100644 validation/tautological-compare.c

-- 
2.10.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-07 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 16:32 [PATCH 0/2] simplify binops with identical operands Luc Van Oostenryck
2016-12-07 16:32 ` [PATCH 1/2] simplify '(x op x)' to '0', '1' or 'x' Luc Van Oostenryck
2016-12-07 16:32 ` [PATCH 2/2] add warning option '-Wtautological-compare' Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).