Commit fe159061 by Richard Kenner

(basic_induction_var): Return 0 if SUBREG is not a promoted variable.

From-SVN: r13365
parent c2ae5b5f
/* 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment