public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/52621] [4.6/4.7/4.8 Regression] ICE with -O3 -march=opteron in initialize_matrix_A, at tree-data-ref.c:1964
Date: Thu, 05 Apr 2012 11:27:00 -0000	[thread overview]
Message-ID: <bug-52621-4-bJ4L8zSfO6@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52621-4@http.gcc.gnu.org/bugzilla/>

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spop at gcc dot gnu.org

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-05 11:27:02 UTC ---
evolution_function_is_univariate_p returns true for

{(integer(kind=8)) {0, +, {2, +, 2}_2}_2, +, 1}_3

but that does not look univariate to me - we do not properly look into
CHREC_LEFT which is (integer(kind=8)) {0, +, {2, +, 2}_2}_2, so something
like

@@ -1114,6 +1132,8 @@ evolution_function_is_univariate_p (cons
          break;

        default:
+         if (tree_contains_chrecs (CHREC_LEFT (chrec), NULL))
+           return false;
          break;
        }

@@ -1127,6 +1147,8 @@ evolution_function_is_univariate_p (cons
          break;

        default:
+         if (tree_contains_chrecs (CHREC_RIGHT (chrec), NULL))
+           return false;
          break;
        }

fixes this.  Then we ICE the same way in analyze_miv_subscript because
we think that beast is affine-multivariate.

The above fix looks obvious to me, but what the right condition for
failing in analyze_overlapping_iterations should be for "loop_nest"
should be, and why using the loop number of the outermost loop of the
nest should be sufficient is beyond my understanding.

Sebastian, can you help?  I can certainly amend

  /* If they aren't the same, and aren't affine, we can't do anything
     yet.  */
  else if ((chrec_contains_symbols (chrec_a)
            || chrec_contains_symbols (chrec_b))
           && (!evolution_function_is_affine_multivariate_p (chrec_a, lnn)
               || !evolution_function_is_affine_multivariate_p (chrec_b, lnn)))
    {
      dependence_stats.num_subscript_undetermined++;
      *overlap_iterations_a = conflict_fn_not_known ();
      *overlap_iterations_b = conflict_fn_not_known ();
    }

though it looks to me that this should go into the else part and
the analyze_miv_subscript case lacks a proper test.


  parent reply	other threads:[~2012-04-05 11:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19 16:13 [Bug fortran/52621] New: ICE when compiling Fortran77 code with optimization pepalogik at seznam dot cz
2012-03-19 16:17 ` [Bug fortran/52621] " pepalogik at seznam dot cz
2012-03-20  8:42 ` burnus at gcc dot gnu.org
2012-03-21 12:45 ` pepalogik at seznam dot cz
2012-03-21 13:22 ` dominiq at lps dot ens.fr
2012-03-21 13:33 ` [Bug middle-end/52621] ICE with -O3 -march=opteron in initialize_matrix_A, at tree-data-ref.c:1964 burnus at gcc dot gnu.org
2012-03-21 13:52 ` [Bug middle-end/52621] [4.6/4.7/4.8 Regression] " dominiq at lps dot ens.fr
2012-03-21 14:21 ` dominiq at lps dot ens.fr
2012-03-21 14:27 ` dominiq at lps dot ens.fr
2012-04-05 10:52 ` rguenth at gcc dot gnu.org
2012-04-05 11:27 ` rguenth at gcc dot gnu.org [this message]
2012-04-11 12:18 ` rguenth at gcc dot gnu.org
2012-04-11 14:05 ` rguenth at gcc dot gnu.org
2012-04-11 14:21 ` [Bug middle-end/52621] [4.6/4.7 " rguenth at gcc dot gnu.org
2012-04-13 13:00 ` rguenth at gcc dot gnu.org
2012-07-06  9:20 ` rguenth at gcc dot gnu.org
2012-07-06  9:27 ` [Bug middle-end/52621] [4.6 " rguenth at gcc dot gnu.org
2012-07-17 22:56 ` danglin at gcc dot gnu.org
2013-04-12 16:27 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52621-4-bJ4L8zSfO6@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).