* alias.c (nonoverlapping_memrefs_p): Fix off by one error.
authorDan Nicolaescu <dann@godzilla.ics.uci.edu>
Tue, 4 Jun 2002 02:25:57 +0000 (02:25 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 4 Jun 2002 02:25:57 +0000 (19:25 -0700)
From-SVN: r54225

gcc/ChangeLog
gcc/alias.c

index 0b913487d0129d417048f64cc537e9afa666ae74..7f985e04e3b11305f6a9da698620205c5c67c900 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
+
+       * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
+
 2002-06-03  Roger Sayle  <roger@eyesopen.com>
 
        * gcse.c (cprop_jump): Use single_set to get the pattern
index 60213d215113027973fd01c600d73ee8a95511c2..e3dd16008cfb2485548fcd1cc10635a9c56360fb 100644 (file)
@@ -2022,7 +2022,7 @@ nonoverlapping_memrefs_p (x, y)
 
   /* If we don't know the size of the lower-offset value, we can't tell
      if they conflict.  Otherwise, we do the test.  */
-  return sizex >= 0 && offsety > offsetx + sizex;
+  return sizex >= 0 && offsety >= offsetx + sizex;
 }
 
 /* True dependence: X is read after store in MEM takes place.  */