Commit 094bb856 by Jan Hubicka Committed by Jan Hubicka

re PR rtl-optimization/25224 (ICE in initialize_original_copy_tables)

	PR rtl-optimization/25224
	* tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
	tables.

From-SVN: r108606
parent cb20f7e8
2005-12-16 Jan Hubicka <jh@suse.cz>
PR rtl-optimization/25224
* tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
tables.
2005-12-15 Zdenek Dvorak <dvorakz@suse.cz> 2005-12-15 Zdenek Dvorak <dvorakz@suse.cz>
Steven Bosscher <stevenb@suse.de> Steven Bosscher <stevenb@suse.de>
......
2005-12-16 Jan Hubicka <jh@suse.cz>
* gcc.c-torture/combine/pr25224.c: New.
2005-12-15 Joseph S. Myers <joseph@codesourcery.com> 2005-12-15 Joseph S. Myers <joseph@codesourcery.com>
PR other/25028 PR other/25028
/* { dg-options "-funswitch-loops" } */
static float rgam;
extern void *jmp(void *);
void drotmg(float d1) {
void *labels[] = { &&L170, &&L180, 0 };
for(;;) {
goto *jmp(labels);
if (d1 <= rgam)
goto L170;
L170:
if (d1 <= rgam)
goto L170;
}
L180:
goto L170;
}
...@@ -253,7 +253,10 @@ tree_unswitch_single_loop (struct loops *loops, struct loop *loop, int num) ...@@ -253,7 +253,10 @@ tree_unswitch_single_loop (struct loops *loops, struct loop *loop, int num)
/* Unswitch the loop on this condition. */ /* Unswitch the loop on this condition. */
nloop = tree_unswitch_loop (loops, loop, bbs[i], cond); nloop = tree_unswitch_loop (loops, loop, bbs[i], cond);
if (!nloop) if (!nloop)
return changed; {
free_original_copy_tables ();
return changed;
}
/* Update the SSA form after unswitching. */ /* Update the SSA form after unswitching. */
update_ssa (TODO_update_ssa); update_ssa (TODO_update_ssa);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment