https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43725
--- Comment #9 from Marat Zakirov <m.zakirov at samsung dot com> --- I used following patch diff --git a/gcc/cse.c b/gcc/cse.c index 34f9364..a9e0442 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -2862,6 +2862,9 @@ canon_reg (rtx x, rtx insn) || ! REGNO_QTY_VALID_P (REGNO (x))) return x; + if (GET_MODE (x) == XImode) + return x; + q = REG_QTY (REGNO (x)); ent = &qty_table[q]; first = ent->first_reg; diff --git a/gcc/fwprop.c b/gcc/fwprop.c index 547fcd6..eadc729 100644 --- a/gcc/fwprop.c +++ b/gcc/fwprop.c @@ -1317,6 +1317,9 @@ forward_propagate_and_simplify (df_ref use, rtx def_insn, rtx def_set) if (!new_rtx) return false; + if (GET_MODE (reg) == XImode) + return false; + return try_fwprop_subst (use, loc, new_rtx, def_insn, set_reg_equal); }