public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18848] New: PRE creates "a_1 = 0 * 4" but does not fold it.
@ 2004-12-05 18:02 kazu at cs dot umass dot edu
  2004-12-05 18:14 ` [Bug tree-optimization/18848] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-12-05 18:02 UTC (permalink / raw)
  To: gcc-bugs

Compile this with -O2.

void
foo (int *table, unsigned int size)
{
  unsigned int i;

  for (i = 0; i < size; i++)
    {
      if (table[i])
	break;
    }

  table[i] = 0;
}

I get:

  pretmp.2_22 = 0 * 4;

-- 
           Summary: PRE creates "a_1 = 0 * 4" but does not fold it.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/18848] PRE creates "a_1 = 0 * 4" but does not fold it.
  2004-12-05 18:02 [Bug tree-optimization/18848] New: PRE creates "a_1 = 0 * 4" but does not fold it kazu at cs dot umass dot edu
@ 2004-12-05 18:14 ` pinskia at gcc dot gnu dot org
  2005-01-31 13:22 ` kazu at cs dot umass dot edu
  2005-04-20  2:10 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-05 18:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-05 18:14 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |missed-optimization, TREE
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-05 18:14:30
               date|                            |


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


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

* [Bug tree-optimization/18848] PRE creates "a_1 = 0 * 4" but does not fold it.
  2004-12-05 18:02 [Bug tree-optimization/18848] New: PRE creates "a_1 = 0 * 4" but does not fold it kazu at cs dot umass dot edu
  2004-12-05 18:14 ` [Bug tree-optimization/18848] " pinskia at gcc dot gnu dot org
@ 2005-01-31 13:22 ` kazu at cs dot umass dot edu
  2005-04-20  2:10 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-01-31 13:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2005-01-31 13:22 -------
This has been fixed with Daniel Berlin's recent check-in.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug tree-optimization/18848] PRE creates "a_1 = 0 * 4" but does not fold it.
  2004-12-05 18:02 [Bug tree-optimization/18848] New: PRE creates "a_1 = 0 * 4" but does not fold it kazu at cs dot umass dot edu
  2004-12-05 18:14 ` [Bug tree-optimization/18848] " pinskia at gcc dot gnu dot org
  2005-01-31 13:22 ` kazu at cs dot umass dot edu
@ 2005-04-20  2:10 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-20  2:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-04-20  2:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-05 18:02 [Bug tree-optimization/18848] New: PRE creates "a_1 = 0 * 4" but does not fold it kazu at cs dot umass dot edu
2004-12-05 18:14 ` [Bug tree-optimization/18848] " pinskia at gcc dot gnu dot org
2005-01-31 13:22 ` kazu at cs dot umass dot edu
2005-04-20  2:10 ` 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).