[Bug tree-optimization/52943] [4.7/4.8 Regression] likely wrong code bug caused by predictive commoning

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 12 12:52:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52943

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-12 12:50:30 UTC ---
Author: rguenth
Date: Thu Apr 12 12:50:22 2012
New Revision: 186377

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186377
Log:
2012-04-12  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/52943
    * tree-chrec.h (chrec_is_positive): Remove.
    * tree-scalar-evolution.c (chrec_is_positive): Move ...
    * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
    Return false for a constant zero instead of negative.
    (analyze_siv_subscript_cst_affine): Handle zero difference
    in the initial condition explicitely.

    * gcc.dg/torture/pr52943.c: New testcase.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr52943.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/tree-chrec.h
    branches/gcc-4_7-branch/gcc/tree-data-ref.c
    branches/gcc-4_7-branch/gcc/tree-scalar-evolution.c



More information about the Gcc-bugs mailing list