From: Richard Kenner Date: Sat, 4 Jan 1997 12:05:57 +0000 (-0500) Subject: (basic_induction_var): Return 0 if SUBREG is not a promoted variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe1590618e122673f416ef98a14b0f5281ccd4b4;p=gcc.git (basic_induction_var): Return 0 if SUBREG is not a promoted variable. From-SVN: r13365 --- diff --git a/gcc/loop.c b/gcc/loop.c index 2ffad5fe41d..c6eb216df19 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -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