On Mon, Dec 17, 2018 at 5:05 PM Ian Romanick <[email protected]> wrote: > > https://gitlab.freedesktop.org/mesa/mesa/merge_requests/22 > > This series adds a new optimization pass that tries to replace code > sequences like > > if (x < y) { > z = y - x; > ... > } > > with a sequence like > > t = x - y; > if (t < 0) { > z = -t; > ... > }
Is it worth worrying about infinities? e.g. if x = -Infinity, y = Infinity, "x < y" will be true, but "x - y < 0" will not be (pretty sure it'll be a NaN, which is not < 0). -ilia _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
