summaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
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);
}
}