+2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
+
+ * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
+ * config/visium/visium.c (single_set_and_flags): Likewise.
+ * config/visium/visium.md (Substitutions): Likewise.
+
2017-05-17 Martin Liska <mliska@suse.cz>
* cfg.c: Introduce dump_flags_t type and
df_ref def;
/* Note that the BB_HEAD is always either a note or a label, but in
- any case it means that IN_A is defined outside the block. */
+ any case it means that REG is defined outside the block. */
if (insn == bb_head)
return NULL_RTX;
if (NOTE_P (insn) || DEBUG_INSN_P (insn))
continue;
- /* Find a possible def of IN_A in INSN. */
+ /* Find a possible def of REG in INSN. */
FOR_EACH_INSN_DEF (def, insn)
if (DF_REF_REGNO (def) == REGNO (reg))
break;
- /* No definitions of IN_A; continue searching. */
+ /* No definitions of REG; continue searching. */
if (def == NULL)
continue;
- /* Bail if this is not a totally normal set of IN_A. */
+ /* Bail if this is not a totally normal set of REG. */
if (DF_REF_IS_ARTIFICIAL (def))
return NULL_RTX;
if (DF_REF_FLAGS (def) & abnormal_flags)
return NULL_RTX;
/* We've found an insn between the compare and the clobber that sets
- IN_A. Given that pass_cprop_hardreg has not yet run, we still find
+ REG. Given that pass_cprop_hardreg has not yet run, we still find
situations in which we can usefully look through a copy insn. */
rtx x = single_set (insn);
if (x == NULL_RTX)
return 1;
}
-/* Wrapper around single_set which returns the first SET of a pair if the
- second SET is to the flags register. */
+/* Wrapper around single_set which returns the second SET of a pair if the
+ first SET is to the flags register. */
static rtx
single_set_and_flags (rtx_insn *insn)
;;
;; Substitutions.
;;
-;; They are used to define the second instruction of the pairs required by
+;; They are used to define the first instruction of the pairs required by
;; the postreload compare elimination pass, with a first variant for the
;; logical insns and a second variant for the arithmetic insns.
;;