public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/36010]  New: Loop interchange not performed
@ 2008-04-22 14:56 rguenth at gcc dot gnu dot org
  2008-04-22 15:20 ` [Bug tree-optimization/36010] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-22 14:56 UTC (permalink / raw)
  To: gcc-bugs

For the testcase

double a[16][64], y[64], x[16];
void foo(void)
{
  int i, j;
  for (j = 0; j < 64; ++j)
    for (i = 0; i < 16; ++i)
      y[j] = y[j] + a[i][j] * x[i];
}

with -O2 -fno-tree-pre -fno-tree-loop-im -ftree-loop-linear loop interchange
is performed but with PRE or lim moving the load (and the store) from/to
y[j] out of the innermost loop the interchange is no longer performed because

      before = gcc_loopnest_to_lambda_loopnest (loop_nest, &oldivs,
                                                &invariants, &lambda_obstack);

returns NULL.


-- 
           Summary: Loop interchange not performed
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-17  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36010-4@http.gcc.gnu.org/bugzilla/>
2021-12-25 11:15 ` [Bug tree-optimization/36010] Loop interchange not performed pinskia at gcc dot gnu.org
2023-10-16 12:40 ` aagarwa at gcc dot gnu.org
2023-10-17  7:06 ` rguenth at gcc dot gnu.org
2008-04-22 14:56 [Bug tree-optimization/36010] New: " rguenth at gcc dot gnu dot org
2008-04-22 15:20 ` [Bug tree-optimization/36010] " rguenth at gcc dot gnu dot org
2008-04-22 15:23 ` rguenth at gcc dot gnu dot org
2008-05-05  5:21 ` pinskia at gcc dot gnu dot org
2008-12-28  6:36 ` pinskia at gcc dot gnu dot org

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).