(basic_induction_var): Return 0 if SUBREG is not a promoted variable.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 4 Jan 1997 12:05:57 +0000 (07:05 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 4 Jan 1997 12:05:57 +0000 (07:05 -0500)
From-SVN: r13365

gcc/loop.c

index 2ffad5fe41d302fe3b715ecae9773f30442a0b5e..c6eb216df194377b34b22d0f35673669a130e225 100644 (file)
@@ -1,5 +1,5 @@
 /* Perform various loop optimizations, including strength reduction.
-   Copyright (C) 1987, 88, 89, 91-5, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1987, 88, 89, 91-6, 1997 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -4989,6 +4989,7 @@ basic_induction_var (x, mode, dest_reg, p, inc_val, mult_val)
       if (SUBREG_PROMOTED_VAR_P (x))
        return basic_induction_var (SUBREG_REG (x), GET_MODE (SUBREG_REG (x)),
                                    dest_reg, p, inc_val, mult_val);
+      return 0;
 
     case REG:
       /* If this register is assigned in the previous insn, look at its