commit | e17426058cd50d8302acd5155846871a2f39b408 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason.ekstrand@intel.com> | Sun Dec 16 00:42:01 2018 -0600 |
committer | Jason Ekstrand <jason@jlekstrand.net> | Sun Dec 16 21:03:02 2018 +0000 |
tree | e76f364634c8ce1811e7f0800d30c77454d5a001 | |
parent | 2977c777589e15ff632415ecfd3548f49f56b4d8 [diff] |
nir/lower_idiv: Use ilt instead of bit twiddling The previous code was creating a boolean by doing an arithmetic right- shift by 31 which produces a boolean which is true if the argument is negative. This is the same as the expression r < 0 which is much simpler and doesn't depend on NIR's representation of booleans. Reviewed-by: Eric Anholt <eric@anholt.net>