From: Eric Botcazou Date: Wed, 17 May 2017 09:12:33 +0000 (+0000) Subject: compare-elim.c (equivalent_reg_at_start): Adjust outdated comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2d61a746904c8e530c1177232d8b49b92b25131;p=gcc.git compare-elim.c (equivalent_reg_at_start): Adjust outdated comment. * 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. From-SVN: r248141 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 072eff70abc..219836cf092 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-05-17 Eric Botcazou + + * 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 * cfg.c: Introduce dump_flags_t type and diff --git a/gcc/compare-elim.c b/gcc/compare-elim.c index b5ce99341f6..d357d16c3dc 100644 --- a/gcc/compare-elim.c +++ b/gcc/compare-elim.c @@ -541,29 +541,29 @@ equivalent_reg_at_start (rtx reg, rtx_insn *end, rtx_insn *start) 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) diff --git a/gcc/config/visium/visium.c b/gcc/config/visium/visium.c index e4cdac198e1..fac254c4c1e 100644 --- a/gcc/config/visium/visium.c +++ b/gcc/config/visium/visium.c @@ -922,8 +922,8 @@ empty_delay_slot (rtx_insn *insn) 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) diff --git a/gcc/config/visium/visium.md b/gcc/config/visium/visium.md index a1f97a252d1..9950f3f3f7e 100644 --- a/gcc/config/visium/visium.md +++ b/gcc/config/visium/visium.md @@ -240,7 +240,7 @@ ;; ;; 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. ;;