Sometimes the cselib_record_sp_cfa_base_equiv makes it into the var-tracking
used VALUEs and needs to be preserved.
2020-04-11 Jakub Jelinek <jakub@redhat.com>
PR debug/94495
PR target/94551
* cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
val->val_rtx.
+2020-04-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/94495
+ PR target/94551
+ * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
+ val->val_rtx.
+
2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
PR middle-end/89433
= cselib_lookup_from_insn (plus_constant (Pmode, sp_derived_value, offset),
Pmode, 1, VOIDmode, insn);
if (val != NULL)
- cselib_record_set (stack_pointer_rtx, val, NULL);
+ {
+ PRESERVED_VALUE_P (val->val_rtx) = 1;
+ cselib_record_set (stack_pointer_rtx, val, NULL);
+ }
}
/* Return true if V is SP_DERIVED_VALUE_P (or SP_DERIVED_VALUE_P + CONST_INT)