summaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2005-11-18 11:31:45 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2005-11-18 10:31:45 +0000
commit21f868a26aa9cc124346ecf6b2d80138728d868c (patch)
treec823903e76fe0992662c06da059ea8ad24f65977 /gcc/loop-unroll.c
parent925196ed525e3f05b74d54391edd3a198986e035 (diff)
downloadgcc-21f868a26aa9cc124346ecf6b2d80138728d868c.tar.gz
re PR rtl-optimization/24497 (internal compiler error: in apply_opt_in_copies, at loop-unroll.c:2122)
PR rtl-optimization/24497 * loop-unroll.c (apply_opt_in_copies): Do not verify equality of the copied insn. From-SVN: r107171
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index 4cabfd58504..69b1eb675c0 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -2118,9 +2118,8 @@ apply_opt_in_copies (struct opt_info *opt_info,
if (ivts)
{
-#ifdef ENABLE_CHECKING
- gcc_assert (rtx_equal_p (PATTERN (insn), PATTERN (orig_insn)));
-#endif
+ gcc_assert (GET_CODE (PATTERN (insn))
+ == GET_CODE (PATTERN (orig_insn)));
if (!delta)
insert_base_initialization (ivts, insn);
@@ -2133,9 +2132,8 @@ apply_opt_in_copies (struct opt_info *opt_info,
ves = htab_find (opt_info->insns_with_var_to_expand, &ve_templ);
if (ves)
{
-#ifdef ENABLE_CHECKING
- gcc_assert (rtx_equal_p (PATTERN (insn), PATTERN (orig_insn)));
-#endif
+ gcc_assert (GET_CODE (PATTERN (insn))
+ == GET_CODE (PATTERN (orig_insn)));
expand_var_during_unrolling (ves, insn);
}
}