[Bug rtl-optimization/27616] [4.1/4.2 Regression] Infinite loop at -O1 and above in RTL CSE
ebotcazou at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 4 19:35:00 GMT 2006
------- Comment #15 from ebotcazou at gcc dot gnu dot org 2006-09-04 19:35 -------
Subject: Bug 27616
Author: ebotcazou
Date: Mon Sep 4 19:35:09 2006
New Revision: 116684
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116684
Log:
PR rtl-optimization/27616
* cse.c (table_size): New static variable.
(new_basic_block): Initialize it to 0.
(remove_from_table): Decrement it.
(insert): Increment it.
(fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
(fold_rtx_mem): Enforce a cap on the recursion depth. Call
fold_rtx_mem_1 if under the cap.
(fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
the lookup of the equivalent expression and test for equality of the
first operand of the equivalent expression before in turn looking up
an equivalent constant for the second operand.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/compile/20060904-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/cse.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27616
More information about the Gcc-bugs
mailing list