public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13751] New: PHI pruning misses obvious cases
@ 2004-01-19 23:08 rth at gcc dot gnu dot org
  2004-01-20  2:22 ` [Bug optimization/13751] [tree-ssa] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-01-19 23:08 UTC (permalink / raw)
  To: gcc-bugs

For gcc.c-torture/compile/920625-1.c, compile with -O -fdump-tree-sra-vops.
Notice at the end of the first function,

  # SR.16_4 = PHI <SR.16_3(2), SR.16_75(3), SR.16_85(1)>;
  # SR.15_5 = PHI <SR.15_1(2), SR.15_74(3), SR.15_84(1)>;
  # SR.14_6 = PHI <SR.14_9(2), SR.14_12(3), SR.14_83(1)>;
  # SR.13_7 = PHI <SR.13_10(2), SR.13_11(3), SR.13_82(1)>;
  # MT.12_8 = PHI <MT.12_2(2), MT.12_80(3), MT.12_91(1)>;
<L3>:;
<L4>:;
  return;

None of those are needed.  Though of course it's the PHIs for real vars that's
more important that the PHI for the VDEF.

-- 
           Summary: PHI pruning misses obvious cases
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: optimization
        AssignedTo: dnovillo at gcc dot gnu dot org
        ReportedBy: rth at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug optimization/13751] [tree-ssa] PHI pruning misses obvious cases
  2004-01-19 23:08 [Bug optimization/13751] New: PHI pruning misses obvious cases rth at gcc dot gnu dot org
@ 2004-01-20  2:22 ` pinskia at gcc dot gnu dot org
  2004-02-05  1:19 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-20  2:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-20 02:22 -------
Confirmed. Some more at the end of the other function (a lot more, all SR's).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-20 02:22:03
               date|                            |
            Summary|PHI pruning misses obvious  |[tree-ssa] PHI pruning
                   |cases                       |misses obvious cases
   Target Milestone|---                         |tree-ssa


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


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

* [Bug optimization/13751] [tree-ssa] PHI pruning misses obvious cases
  2004-01-19 23:08 [Bug optimization/13751] New: PHI pruning misses obvious cases rth at gcc dot gnu dot org
  2004-01-20  2:22 ` [Bug optimization/13751] [tree-ssa] " pinskia at gcc dot gnu dot org
@ 2004-02-05  1:19 ` pinskia at gcc dot gnu dot org
  2004-02-16 22:20 ` law at gcc dot gnu dot org
  2004-02-16 23:48 ` dnovillo at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-05  1:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-05 01:19 -------
Seems fixed in 20040131. RTH, can you try again to check if this is fixed?

-- 


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


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

* [Bug optimization/13751] [tree-ssa] PHI pruning misses obvious cases
  2004-01-19 23:08 [Bug optimization/13751] New: PHI pruning misses obvious cases rth at gcc dot gnu dot org
  2004-01-20  2:22 ` [Bug optimization/13751] [tree-ssa] " pinskia at gcc dot gnu dot org
  2004-02-05  1:19 ` pinskia at gcc dot gnu dot org
@ 2004-02-16 22:20 ` law at gcc dot gnu dot org
  2004-02-16 23:48 ` dnovillo at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: law at gcc dot gnu dot org @ 2004-02-16 22:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From law at gcc dot gnu dot org  2004-02-16 22:20 -------
Probably fixed by the DSE changes to allow it to remove PHIs for virtual variables
when the virtual variables were never used.

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


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


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

* [Bug optimization/13751] [tree-ssa] PHI pruning misses obvious cases
  2004-01-19 23:08 [Bug optimization/13751] New: PHI pruning misses obvious cases rth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-02-16 22:20 ` law at gcc dot gnu dot org
@ 2004-02-16 23:48 ` dnovillo at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dnovillo at redhat dot com @ 2004-02-16 23:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dnovillo at redhat dot com  2004-02-16 23:48 -------
Subject: Re:  [tree-ssa] PHI pruning misses obvious
	cases

On Mon, 2004-02-16 at 17:20, law at gcc dot gnu dot org wrote:

> Probably fixed by the DSE changes to allow it to remove PHIs for virtual variables
> when the virtual variables were never used.
>
Actually, this one has been fixed for a few days now :)



-- 


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


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

end of thread, other threads:[~2004-02-16 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 23:08 [Bug optimization/13751] New: PHI pruning misses obvious cases rth at gcc dot gnu dot org
2004-01-20  2:22 ` [Bug optimization/13751] [tree-ssa] " pinskia at gcc dot gnu dot org
2004-02-05  1:19 ` pinskia at gcc dot gnu dot org
2004-02-16 22:20 ` law at gcc dot gnu dot org
2004-02-16 23:48 ` dnovillo at redhat dot com

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