re PR rtl-optimization/52803 (ICE: in ira, at ira.c:3616 with -fno-move-loop-invariants on almost any code)
2012-04-02 Richard Guenther <rguenther@suse.de> PR middle-end/52803 * loop-init.c (gate_handle_loop2): Destroy loops here if we don't enter RTL loop optimizers. * gcc.dg/pr52803.c: New testcase. From-SVN: r186080
This commit is contained in:
parent
cf5ba8a881
commit
225820eef4
4 changed files with 31 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-04-02 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/52803
|
||||
* loop-init.c (gate_handle_loop2): Destroy loops here if
|
||||
we don't enter RTL loop optimizers.
|
||||
|
||||
2012-04-02 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
Partially revert:
|
||||
|
|
|
@ -158,15 +158,24 @@ loop_optimizer_finalize (void)
|
|||
static bool
|
||||
gate_handle_loop2 (void)
|
||||
{
|
||||
return (optimize > 0
|
||||
&& (flag_move_loop_invariants
|
||||
|| flag_unswitch_loops
|
||||
|| flag_peel_loops
|
||||
|| flag_unroll_loops
|
||||
if (optimize > 0
|
||||
&& (flag_move_loop_invariants
|
||||
|| flag_unswitch_loops
|
||||
|| flag_peel_loops
|
||||
|| flag_unroll_loops
|
||||
#ifdef HAVE_doloop_end
|
||||
|| (flag_branch_on_count_reg && HAVE_doloop_end)
|
||||
|| (flag_branch_on_count_reg && HAVE_doloop_end)
|
||||
#endif
|
||||
));
|
||||
))
|
||||
return true;
|
||||
else
|
||||
{
|
||||
/* No longer preserve loops, remove them now. */
|
||||
cfun->curr_properties &= ~PROP_loops;
|
||||
if (current_loops)
|
||||
loop_optimizer_finalize ();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
struct rtl_opt_pass pass_loop2 =
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2012-04-02 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/52803
|
||||
* gcc.dg/pr52803.c: New testcase.
|
||||
|
||||
2012-04-02 Dodji Seketeli <dodji@redhat.com>
|
||||
|
||||
PR c++/40942
|
||||
|
|
4
gcc/testsuite/gcc.dg/pr52803.c
Normal file
4
gcc/testsuite/gcc.dg/pr52803.c
Normal file
|
@ -0,0 +1,4 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O -fno-move-loop-invariants" } */
|
||||
|
||||
int main () { return 0; }
|
Loading…
Add table
Reference in a new issue