https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122274
--- Comment #1 from Surya Kumari Jangala <jskumari at gcc dot gnu.org> --- cprop_hardreg uses ‘struct value_data’ to hold lists of registers that contain the same value. However, the value data does not have any information about the instruction that sets the values in the register. We can extend this data structure such that we add a new field to ’struct value_data_entry’ which indicates if the instruction that created this value is frame related or not. Then during copy propagation, we do not replace registers if the copy is happening from a non-frame related insn to a frame related insn.
