* [Bug optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
@ 2004-05-09 20:36 ` pinskia at gcc dot gnu dot org
2004-05-21 13:32 ` [Bug tree-optimization/15349] " dnovillo at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-09 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-09 20:36 -------
Confirmed, could be considered a compile time and memory time hog as there are more than needed
bb at the end of compiling. (I have seen this in some other cases too).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |compile-time-hog, memory-hog
Last reconfirmed|0000-00-00 00:00:00 |2004-05-09 20:36:22
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
2004-05-09 20:36 ` [Bug optimization/15349] " pinskia at gcc dot gnu dot org
@ 2004-05-21 13:32 ` dnovillo at gcc dot gnu dot org
2004-05-25 0:11 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2004-05-21 13:32 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dnovillo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
2004-05-09 20:36 ` [Bug optimization/15349] " pinskia at gcc dot gnu dot org
2004-05-21 13:32 ` [Bug tree-optimization/15349] " dnovillo at gcc dot gnu dot org
@ 2004-05-25 0:11 ` pinskia at gcc dot gnu dot org
2004-09-14 2:55 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-25 0:11 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (2 preceding siblings ...)
2004-05-25 0:11 ` pinskia at gcc dot gnu dot org
@ 2004-09-14 2:55 ` pinskia at gcc dot gnu dot org
2004-09-14 3:53 ` kazu at cs dot umass dot edu
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-14 2:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-14 02:55 -------
I see this while compiling postreload.c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (3 preceding siblings ...)
2004-09-14 2:55 ` pinskia at gcc dot gnu dot org
@ 2004-09-14 3:53 ` kazu at cs dot umass dot edu
2004-09-19 19:03 ` kazu at cs dot umass dot edu
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-09-14 3:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2004-09-14 03:53 -------
Well, this occurs everywhere, but just give you an example, sometimes
a chain of PHI goes as long as
<L126>:;
# iftmp.32_81 = PHI <0(69), 5(70)>;
<L128>:;
# iftmp.32_83 = PHI <7(67), 6(68), iftmp.32_81(71)>;
<L132>:;
# iftmp.32_78 = PHI <iftmp.32_83(72), 16(62), iftmp.32_79(66), 0(61)>;
<L134>:;
# iftmp.32_84 = PHI <2(55), iftmp.32_75(59), iftmp.32_78(73)>;
<L137>:;
# iftmp.32_86 = PHI <4(53), 3(54), iftmp.32_84(74)>;
<L141>:;
# iftmp.32_74 = PHI <iftmp.32_86(75), 14(51), 0(50), 14(49), 1(52)>;
<L144>:;
# iftmp.32_70 = PHI <iftmp.32_74(76), 15(42), 0(41), 15(40), iftmp.32_71(47)>;
<L146>:;
# iftmp.32_89 = PHI <8(37), 8(38), iftmp.32_70(77)>;
<L150>:;
# iftmp.32_91 = PHI <12(35), 11(36), iftmp.32_89(78)>;
<L154>:;
This comes from reload_cse_simplify_operands() in postreload.c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (4 preceding siblings ...)
2004-09-14 3:53 ` kazu at cs dot umass dot edu
@ 2004-09-19 19:03 ` kazu at cs dot umass dot edu
2004-09-20 20:08 ` kazu at cs dot umass dot edu
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-09-19 19:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2004-09-19 19:03 -------
The patch posted at:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01888.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (5 preceding siblings ...)
2004-09-19 19:03 ` kazu at cs dot umass dot edu
@ 2004-09-20 20:08 ` kazu at cs dot umass dot edu
2004-12-22 4:59 ` kazu at cs dot umass dot edu
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-09-20 20:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2004-09-20 20:08 -------
An updated patch:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01974.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (6 preceding siblings ...)
2004-09-20 20:08 ` kazu at cs dot umass dot edu
@ 2004-12-22 4:59 ` kazu at cs dot umass dot edu
2005-01-20 19:21 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-12-22 4:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2004-12-22 04:59 -------
Another updated patch:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01587.html
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|dnovillo at gcc dot gnu dot |kazu at cs dot umass dot edu
|org |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (7 preceding siblings ...)
2004-12-22 4:59 ` kazu at cs dot umass dot edu
@ 2005-01-20 19:21 ` cvs-commit at gcc dot gnu dot org
2005-01-20 19:49 ` kazu at cs dot umass dot edu
2005-01-20 21:10 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-20 19:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-20 19:20 -------
Subject: Bug 15349
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: kazu@gcc.gnu.org 2005-01-20 19:20:40
Modified files:
gcc : ChangeLog timevar.def tree-cfg.c
tree-optimize.c tree-pass.h
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg/tree-ssa: pr15349.c
Log message:
PR tree-optimization/15349
* timevar.def (TV_TREE_MERGE_PHI): New.
* tree-cfg.c (tree_forwarder_block_p): Add a new argument
PHI_WANTED.
(remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
calls to tree_forwarder_block_p.
(remove_forwarder_block_with_phi, merge_phi_nodes,
gate_merge_phi, pass_merge_phi): New.
* tree-optimize.c (init_tree_optimization_passes): Add
pass_merge_phi.
* tree-pass.h: Add an extern for pass_merge_phi;
PR tree-optimization/15349
* testsuite/gcc.dg/tree-ssa/pr15349.c: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7204&r2=2.7205
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/timevar.def.diff?cvsroot=gcc&r1=1.41&r2=1.42
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-cfg.c.diff?cvsroot=gcc&r1=2.140&r2=2.141
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-optimize.c.diff?cvsroot=gcc&r1=2.68&r2=2.69
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-pass.h.diff?cvsroot=gcc&r1=2.24&r2=2.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4914&r2=1.4915
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr15349.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (8 preceding siblings ...)
2005-01-20 19:21 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-20 19:49 ` kazu at cs dot umass dot edu
2005-01-20 21:10 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-01-20 19:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2005-01-20 19:49 -------
Just checked in a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/15349] [tree-ssa] Merge two phi nodes.
2004-05-09 19:48 [Bug optimization/15349] New: [tree-ssa] Merge two phi nodes kazu at cs dot umass dot edu
` (9 preceding siblings ...)
2005-01-20 19:49 ` kazu at cs dot umass dot edu
@ 2005-01-20 21:10 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-20 21:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15349
^ permalink raw reply [flat|nested] 12+ messages in thread