View | Details | Return to bug 11440
Collapse All | Expand All

(-)gcc/gcse.c (-3 / +6 lines)
Lines 3954-3962 try_replace_reg (from, to, insn) Link Here
3954
	  && validate_change (insn, &SET_SRC (set), src, 0))
3954
	  && validate_change (insn, &SET_SRC (set), src, 0))
3955
	success = 1;
3955
	success = 1;
3956
3956
3957
      /* If we've failed to do replacement, have a single SET, and don't already
3957
      /* If we've failed to do replacement, have a single SET, don't already
3958
	 have a note, add a REG_EQUAL note to not lose information.  */
3958
	 have a note, and have no special SET, add a REG_EQUAL note to not
3959
      if (!success && note == 0 && set != 0)
3959
	 lose information.  */
3960
      if (!success && note == 0 && set != 0
3961
	  && GET_CODE (XEXP (set, 0)) != ZERO_EXTRACT
3962
	  && GET_CODE (XEXP (set, 0)) != SIGN_EXTRACT)
3960
	note = set_unique_reg_note (insn, REG_EQUAL, copy_rtx (src));
3963
	note = set_unique_reg_note (insn, REG_EQUAL, copy_rtx (src));
3961
    }
3964
    }
3962
3965

Return to bug 11440