https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128690

Hongtao Liu <liuhongt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |liuhongt at gcc dot 
gnu.org

--- Comment #4 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
diff --git a/gcc/config/i386/i386-features.cc
b/gcc/config/i386/i386-features.cc
index ee5ad076857..7f4fe5b65a2 100644
--- a/gcc/config/i386/i386-features.cc
+++ b/gcc/config/i386/i386-features.cc
@@ -3956,6 +3956,13 @@ replace_vector_const (machine_mode vector_mode, rtx
vector_const,
        {
          dest = gen_lowpart (scalar_mode, dest);
          SET_DEST (set) = dest;
+         /* SET_SRC is now the constant itself, so any REG_EQUAL or
+            REG_EQUIV note is redundant.  It is also in the old vector
+            mode, which no longer matches DEST when gen_lowpart has
+            folded (subreg:V2QI (reg:HI)) back to (reg:HI); IRA would
+            then record a HImode equivalence to a V2QImode CONST_VECTOR
+            (PR target/128690).  */
+         remove_reg_equal_equiv_notes (insn, true);
        }
       /* Drop possible dead definitions.  */
       PATTERN (insn) = set;


This should fix the ICE, I'm testing a patch.

Reply via email to