On 09/03/2018 03:17 AM, andrey simiklit wrote:
> Hi,
>
> I guess it is just a small mistake in description that:
> 'z' was before:
> z = y - x;
> and became after:
> z = x - y;
>
> I think you inadvertently misspelled in the description and you mean:
>
>
> This pass attempts to dectec
Hi,
I guess it is just a small mistake in description that:
'z' was before:
z = y - x;
and became after:
z = x - y;
I think you inadvertently misspelled in the description and you mean:
>
> This pass attempts to dectect code sequences like
>
> if (x < y) {
> z = y - x;
>
From: Ian Romanick
This pass attempts to dectect code sequences like
if (x < y) {
z = y - x;
...
}
and replace them with sequences like
t = x - y;
if (t < 0) {
z = t;
...
}
On architectures where the subtract can generate the flags used by t