public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] fix loop updating in jump threading
@ 2007-07-25 12:11 Zdenek Dvorak
  2007-07-25 16:19 ` Diego Novillo
  0 siblings, 1 reply; 2+ messages in thread
From: Zdenek Dvorak @ 2007-07-25 12:11 UTC (permalink / raw)
  To: gcc-patches

Hello,

to keep track of loop exits in jump threading, we need to scan the newly
created edge in create_edge_and_update_destination_phis.  Bootstrapped &
regtested on i686.

Zdenek

	* tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
	Scan the new edge for loop exit info.

Index: tree-ssa-threadupdate.c
===================================================================
*** tree-ssa-threadupdate.c	(revision 126869)
--- tree-ssa-threadupdate.c	(working copy)
*************** create_edge_and_update_destination_phis 
*** 313,318 ****
--- 313,319 ----
    edge e = make_edge (rd->dup_block, rd->outgoing_edge->dest, EDGE_FALLTHRU);
    tree phi;
  
+   rescan_loop_exit (e, true, false);
    e->probability = REG_BR_PROB_BASE;
    e->count = rd->dup_block->count;
    e->aux = rd->outgoing_edge->aux;

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

* Re: [patch] fix loop updating in jump threading
  2007-07-25 12:11 [patch] fix loop updating in jump threading Zdenek Dvorak
@ 2007-07-25 16:19 ` Diego Novillo
  0 siblings, 0 replies; 2+ messages in thread
From: Diego Novillo @ 2007-07-25 16:19 UTC (permalink / raw)
  To: Zdenek Dvorak; +Cc: gcc-patches

On 7/25/07 7:58 AM, Zdenek Dvorak wrote:

> 	* tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
> 	Scan the new edge for loop exit info.

OK.

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

end of thread, other threads:[~2007-07-25 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 12:11 [patch] fix loop updating in jump threading Zdenek Dvorak
2007-07-25 16:19 ` Diego Novillo

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