linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix cast to bool
@ 2016-12-11 21:13 Luc Van Oostenryck
  2016-12-11 21:13 ` [PATCH 1/3] " Luc Van Oostenryck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luc Van Oostenryck @ 2016-12-11 21:13 UTC (permalink / raw)
  To: linux-sparse; +Cc: Christopher Li, Luc Van Oostenryck

This serie fix casting to bool (patch 1) and add two simplifications
which couldn't be done without the fix.

Luc Van Oostenryck (3):
  fix cast to bool
  simplify comparisons followed by an equality test against 0 or 1
  simplify '(x || x)' and '(x && x)'

 evaluate.c                        | 32 +++++++++++++++++
 simplify.c                        | 73 ++++++++++++++++++++++++++++++++++++---
 validation/bool-cast-bad.c        | 27 +++++++++++++++
 validation/bool-cast-explicit.c   | 26 ++++++++++++++
 validation/bool-cast-implicit.c   | 28 +++++++++++++++
 validation/optim/bool-same-args.c | 12 +++++++
 validation/optim/setcc-setcc.c    | 19 ++++++++++
 validation/optim/setcc-seteq.c    | 13 +++++++
 validation/optim/setcc-setne.c    | 13 +++++++
 9 files changed, 239 insertions(+), 4 deletions(-)
 create mode 100644 validation/bool-cast-bad.c
 create mode 100644 validation/bool-cast-explicit.c
 create mode 100644 validation/bool-cast-implicit.c
 create mode 100644 validation/optim/bool-same-args.c
 create mode 100644 validation/optim/setcc-setcc.c
 create mode 100644 validation/optim/setcc-seteq.c
 create mode 100644 validation/optim/setcc-setne.c

-- 
2.10.2


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-11 21:13 [PATCH 0/3] fix cast to bool Luc Van Oostenryck
2016-12-11 21:13 ` [PATCH 1/3] " Luc Van Oostenryck
2016-12-11 21:13 ` [PATCH 2/3] simplify comparisons followed by an equality test against 0 or 1 Luc Van Oostenryck
2016-12-11 21:13 ` [PATCH 3/3] simplify '(x || x)' and '(x && x)' 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).