aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2023-04-19 17:45:57 +0200
committerHans-Peter Nilsson <hp@bitrange.com>2023-04-26 01:12:25 +0200
commit064eed39d232b0984a0199a6163e3db68e41671f (patch)
tree8806e76c21abf91d59e429c0fcfdfbe8d59c754e
parentdd39ec6dc7440d24078d91a04144e33fe67ae2a8 (diff)
downloadgcc-064eed39d232b0984a0199a6163e3db68e41671f.zip
gcc-064eed39d232b0984a0199a6163e3db68e41671f.tar.gz
gcc-064eed39d232b0984a0199a6163e3db68e41671f.tar.bz2
recog.cc: Correct comments referring to parameter match_len
* recog.cc (peep2_attempt, peep2_update_life): Correct head-comment description of parameter match_len.
-rw-r--r--gcc/recog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/recog.cc b/gcc/recog.cc
index 3ddeab5..fd09145 100644
--- a/gcc/recog.cc
+++ b/gcc/recog.cc
@@ -3850,7 +3850,7 @@ copy_frame_info_to_split_insn (rtx_insn *old_insn, rtx_insn *new_insn)
maybe_copy_prologue_epilogue_insn (old_insn, new_insn);
}
-/* While scanning basic block BB, we found a match of length MATCH_LEN,
+/* While scanning basic block BB, we found a match of length MATCH_LEN + 1,
starting at INSN. Perform the replacement, removing the old insns and
replacing them with ATTEMPT. Returns the last insn emitted, or NULL
if the replacement is rejected. */
@@ -4036,7 +4036,7 @@ peep2_attempt (basic_block bb, rtx_insn *insn, int match_len, rtx_insn *attempt)
/* After performing a replacement in basic block BB, fix up the life
information in our buffer. LAST is the last of the insns that we
emitted as a replacement. PREV is the insn before the start of
- the replacement. MATCH_LEN is the number of instructions that were
+ the replacement. MATCH_LEN + 1 is the number of instructions that were
matched, and which now need to be replaced in the buffer. */
static void