public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] rtl-ssa: Fix reversed comparisons in accesses.h comment
@ 2021-01-13 11:44 Richard Sandiford
  0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2021-01-13 11:44 UTC (permalink / raw)
  To: gcc-patches

Noticed while looking at something else that the comment above
def_lookup got the description of the comparisons the wrong way
round.

Tested on aarch64-linux-gnu and pushed as obvious.

Richard


gcc/
	* rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
---
 gcc/rtl-ssa/accesses.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/rtl-ssa/accesses.h b/gcc/rtl-ssa/accesses.h
index a47f9d997ec..09ae583f993 100644
--- a/gcc/rtl-ssa/accesses.h
+++ b/gcc/rtl-ssa/accesses.h
@@ -965,13 +965,13 @@ public:
 //   clobber_group that spans P.  MUX then contains this definition
 //   or clobber_group.
 //
-// - Otherwise, COMPARISON is less than 0 if we found the definition
+// - Otherwise, COMPARISON is greater than 0 if we found the definition
 //   that precedes P or the group of clobbers that precedes P.  MUX then
 //   contains this definition or clobber_group.
 //
-// - Otherwise, COMPARISON is greater than zero and we found the
-//   definition that follows P, or the group of clobbers that follows P.
-//   MUX then contains this definition or clobber_group.
+// - Otherwise, COMPARISON is less than zero and we found the definition
+//   that follows P, or the group of clobbers that follows P.  MUX then
+//   contains this definition or clobber_group.
 class def_lookup
 {
 public:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-13 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 11:44 [pushed] rtl-ssa: Fix reversed comparisons in accesses.h comment Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).