linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Christopher Li <sparse@chrisli.org>,
	Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 0/2] simplify binops with identical operands
Date: Wed,  7 Dec 2016 17:32:55 +0100	[thread overview]
Message-ID: <20161207163257.22287-1-luc.vanoostenryck@gmail.com> (raw)

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


             reply	other threads:[~2016-12-07 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-07 16:32 Luc Van Oostenryck [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161207163257.22287-1-luc.vanoostenryck@gmail.com \
    --to=luc.vanoostenryck@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    --cc=sparse@chrisli.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).