* regmove.c (regmove_profitable_p): Use return value of find_matches
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Nov 1998 05:59:02 +0000 (05:59 +0000)
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Nov 1998 05:59:02 +0000 (05:59 +0000)
properly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23750 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regmove.c

index 4102a4e..9c60e92 100644 (file)
@@ -1,3 +1,8 @@
+Sun Nov 22 13:40:02 1998  Bernd Schmidt  <crux@pool.informatik.rwth-aachen.de>
+
+       * regmove.c (regmove_profitable_p): Use return value of find_matches
+       properly.
+
 Sun Nov 22 02:47:37 PST 1998 Jeff Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index 2332360..f1353c8 100644 (file)
@@ -2028,7 +2028,7 @@ regmove_profitable_p ()
               we find a machine where this occurs and regmove should
               be enabled.  */
            break;
-         if (find_matches (pat, &match) >= 0)
+         if (find_matches (pat, &match))
            return 1;
          break;
        }