This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix PR rtl-optimization/20017 - Take 2


On Tue, 2005-02-22 at 08:58 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is a revised patch to fix PR rtl-optimization/20017, a
> fall-out from one of my speed-up patches.
> 
> The original version was posted at:
> 
> http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01131.html
> 
> The patch calls delete_dead_jumptables if CSE, GCSE, or COMBINE folds
> a conditional jump into an unconditonal one.  We do so immediately
> before cleanup_cfg.  This solution should be a lot cheaper than
> calling delete_dead_jumptables from cleanup_cfg as cleanup_cfg is run
> many times.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	PR rtl-optimization/20017.
> 	* passes.c (rest_of_handle_combine, rest_of_handle_cse,
> 	rest_of_handle_cse2, rest_of_handle_gcse): Call
> 	delete_dead_jumptables immediately before calling cleanup_cfg.
This is fine.

> 
> 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	PR rtl-optimization/20017.
> 	* gcc.dg/pr20017.c: New.
I think this belongs in gcc.c-torture/compile.  Or is it the case that
you need the -mi386 to trigger the failure?

jeff



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]