[PATCH 0/5] simplify equality testing with 0 & 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series contains a few simplifications of OP_SETNE & OP_SETEQ
with 0 and 1.

This series is available for review & testing in the Git repository at:
  git://github.com/lucvoo/sparse-dev.git optim-setne

----------------------------------------------------------------
Luc Van Oostenryck (5):
  testcase for SET{EQ,NE}([SZ]EXT(x, N),{0,1})'s simplification
  cleanup of simplify_seteq_setne(): remove tmp vars
  simplify SET{EQ,NE}(ZEXT(x, N),{0,1})
  simplify SET{EQ,NE}(SEXT(x, N),{0,1})
  simplify 'x != 0' or 'x == 1' to 'x'

 simplify.c                         | 36 ++++++++++++---------
 validation/optim/bool-context-fp.c |  6 ++--
 validation/optim/bool-sext-test.c  | 12 +++++++
 validation/optim/bool-simplify2.c  | 50 ++++++++++--------------------
 validation/optim/bool-zext-test.c  | 12 +++++++
 5 files changed, 64 insertions(+), 52 deletions(-)
 create mode 100644 validation/optim/bool-sext-test.c
 create mode 100644 validation/optim/bool-zext-test.c

-- 
2.18.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux