[PR46761] graphite: fix testing of boundary wrapping
Sebastian Pop
sebpop@gmail.com
Mon Dec 13 16:36:00 GMT 2010
On Mon, Dec 13, 2010 at 07:40, Alexander Monakov <amonakov@ispras.ru> wrote:
> Hi,
>
> As indicated by the testcase, sometimes Graphite would generate wrong region
> guards if UB_ONE overflows, but does not become zero (i.e. it is signed).
> The patch changes the corresponding test to use TREE_OVERFLOW flag.
>
> Bootstrapped and regtested on x86_64-linux, OK for trunk?
>
> 2010-12-13 Alexander Monakov <amonakov@ispras.ru>
>
> PR middle-end/46761
> * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
> TREE_OVERFLOW_P to test overflow.
>
> testsuite:
> * gcc.dg/graphite/pr46761.c: New.
>
Ok. Thanks for fixing this,
Sebastian
More information about the Gcc-patches
mailing list