[PATCH 0/2] simplify and canonicalize unsigned compares

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

 



Some unsigned compares are always true or false. Some others,
testing if the value is greater or smaller than 0 or 1 are
equivalent to testing if this value is equal or not to 0.

These 2 patches simplify the first ones and canonicalize the
others to the equivalent equality test.

Luc Van Oostenryck (2):
  simplify unsigned compares against 0
  canonicalize unsigned compares against 0 or 1

 simplify.c                   | 30 ++++++++++++++++++++++++++++++
 validation/optim/set-uimm0.c | 14 ++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 validation/optim/set-uimm0.c

-- 
2.28.0




[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