diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-11-09 16:08:15 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-11-09 16:08:15 -0800 |
commit | 43a674af6f5e38f72c8b90640415ca467981e8ba (patch) | |
tree | 3dd67a7043d2755e50d8ea0eebd16078845a2806 | |
parent | b1533c05154cce85966c3456e1eb98327ce9847c (diff) | |
download | gcc-43a674af6f5e38f72c8b90640415ca467981e8ba.zip gcc-43a674af6f5e38f72c8b90640415ca467981e8ba.tar.gz gcc-43a674af6f5e38f72c8b90640415ca467981e8ba.tar.bz2 |
(strength_reduce): Accept VOIDmode initial values.
From-SVN: r6046
-rw-r--r-- | gcc/loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3410,7 +3410,8 @@ strength_reduce (scan_start, end, loop_top, insn_count, "Biv %d initialized at insn %d: initial value ", bl->regno, INSN_UID (bl->init_insn)); - if (GET_MODE (src) == GET_MODE (regno_reg_rtx[bl->regno]) + if ((GET_MODE (src) == GET_MODE (regno_reg_rtx[bl->regno]) + || GET_MODE (src) == VOIDmode) && valid_initial_value_p (src, bl->init_insn, call_seen, loop_start)) { bl->initial_value = src; |