From: rsandifo Date: Sun, 11 Jan 2004 10:22:29 +0000 (+0000) Subject: PR optimization/13469 X-Git-Tag: upstream/4.9.2~74136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=389f8841112b1d270ceca24746d94e3b21026455;p=platform%2Fupstream%2Flinaro-gcc.git PR optimization/13469 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after reload_cse_regs (-fnon-call-exceptions only). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75669 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0f1a8f5..aa363b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-01-11 Richard Sandiford + + PR optimization/13469 + * toplev.c (rest_of_compilation): Call purge_all_dead_edges after + reload_cse_regs (-fnon-call-exceptions only). + 2004-01-11 Kazu Hirata * config/mcore/lib1.asm: Fix comment formatting. diff --git a/gcc/toplev.c b/gcc/toplev.c index 0f6ca26..4781939 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3388,6 +3388,10 @@ rest_of_compilation (tree decl) { timevar_push (TV_RELOAD_CSE_REGS); reload_cse_regs (insns); + /* reload_cse_regs can eliminate potentially-trapping MEMs. + Remove any EH edges associated with them. */ + if (flag_non_call_exceptions) + purge_all_dead_edges (0); timevar_pop (TV_RELOAD_CSE_REGS); }