public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/35345]  New: Scalar replacement to handle output dependence
@ 2008-02-24  4:41 xinliangli at gmail dot com
  2008-02-24 21:53 ` [Bug middle-end/35345] " rguenth at gcc dot gnu dot org
  2008-04-07  1:39 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: xinliangli at gmail dot com @ 2008-02-24  4:41 UTC (permalink / raw)
  To: gcc-bugs

// David Li
Gcc's scalar replacement and predictive commoning implementation is very good.
There are some missing cases. Handling output dependence is one of them.

Handling of output dependence. In this case, the store at (1) is dead except
for the last iteration -- it should be sinked out of the loop. (-O3
-fno-tree-vectorize)

int a[1000];
int b[1000];

void foo(int n)
{
   int i = 1;
   for(; i < n; i++)
   {
        a[i+1] =i;     // (1) 
        a[i] = i+1;
   }
}


-- 
           Summary: Scalar replacement to handle output dependence
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: xinliangli at gmail dot com


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


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

* [Bug middle-end/35345] Scalar replacement to handle output dependence
  2008-02-24  4:41 [Bug middle-end/35345] New: Scalar replacement to handle output dependence xinliangli at gmail dot com
@ 2008-02-24 21:53 ` rguenth at gcc dot gnu dot org
  2008-04-07  1:39 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-24 21:53 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |enhancement
           Keywords|                            |missed-optimization
            Version|unknown                     |4.3.0


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


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

* [Bug middle-end/35345] Scalar replacement to handle output dependence
  2008-02-24  4:41 [Bug middle-end/35345] New: Scalar replacement to handle output dependence xinliangli at gmail dot com
  2008-02-24 21:53 ` [Bug middle-end/35345] " rguenth at gcc dot gnu dot org
@ 2008-04-07  1:39 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-07  1:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-04-07 01:38 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-04-07 01:38:45
               date|                            |


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


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

end of thread, other threads:[~2008-04-07  1:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-24  4:41 [Bug middle-end/35345] New: Scalar replacement to handle output dependence xinliangli at gmail dot com
2008-02-24 21:53 ` [Bug middle-end/35345] " rguenth at gcc dot gnu dot org
2008-04-07  1:39 ` 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).