Skip to content

simplify and canonicalize unsigned compares

Luc Van Oostenryck linux-sparse 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2simplify unsigned compares against 0simplify.c validation/optim/set-uimm0.c+20 -02 replies
2/2canonicalize unsigned compares against 0 or 1simplify.c validation/optim/set-uimm0.c+25 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] simplify and canonicalize unsigned compares

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
Signature · 1 line
2.28.0