aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 28b7264..d390db3 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -5153,6 +5153,11 @@ gcse_emit_move_after (src, dest, insn)
new = emit_insn_after (gen_rtx_SET (VOIDmode, dest, src), insn);
+ /* want_to_gcse_p verifies that this move will be valid. Still this call
+ is mandatory as it may create clobbers required by the pattern. */
+ if (insn_invalid_p (insn))
+ abort ();
+
/* Note the equivalence for local CSE pass. */
if ((note = find_reg_equal_equiv_note (insn)))
eqv = XEXP (note, 0);