commit | df7767c6c57284ec3deda589f3694d2170b21fd6 | [log] [tgz] |
---|---|---|
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | Tue Feb 09 02:36:14 2021 +0100 |
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | Sun Apr 18 17:21:37 2021 +0200 |
tree | ad444f1cd7ec2aa07f2e6c8d7b7e5654018e5ec3 | |
parent | 28cd6d609ea460c6138f8cd17f89fc9885fb7dc2 [diff] |
simplify AND(x >= 0, x < C) --> (unsigned)x < C Such compares with a signed value are relatively common and can be easily be simplified into a single unsigned compare. So, do it. Note: This simplification triggers only 27 times in a x86-64 defconfig kernel. I expected more but I suppose it's because most checks aren't done against a constant or are done with unsigned values. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>