aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-05-17 09:12:33 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-05-17 09:12:33 +0000
commitd2d61a746904c8e530c1177232d8b49b92b25131 (patch)
treee378f4420d6935e7b7fa6fde5a3ebca5d7d03bf0
parent1a81741814618bc19d13de0b9e59c0324114cc86 (diff)
downloadgcc-d2d61a746904c8e530c1177232d8b49b92b25131.zip
gcc-d2d61a746904c8e530c1177232d8b49b92b25131.tar.gz
gcc-d2d61a746904c8e530c1177232d8b49b92b25131.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/compare-elim.c10
-rw-r--r--gcc/config/visium/visium.c4
-rw-r--r--gcc/config/visium/visium.md2
4 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 072eff7..219836c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gcc/compare-elim.c b/gcc/compare-elim.c
index b5ce993..d357d16 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 e4cdac1..fac254c 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 a1f97a2..9950f3f 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.
;;