regclass.c (init_reg_autoinc): Fix typo preventing test of secondary output reload when...

* regclass.c (init_reg_autoinc): Fix typo preventing test of
	secondary output reload when setting forbidden_inc_dec_class.

From-SVN: r130333
This commit is contained in:
Hans-Peter Nilsson 2007-11-21 19:59:54 +00:00 committed by Hans-Peter Nilsson
parent 0df50e7a0c
commit 12e8869659
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-11-21 Hans-Peter Nilsson <hp@axis.com>
* regclass.c (init_reg_autoinc): Fix typo preventing test of
secondary output reload when setting forbidden_inc_dec_class.
2007-11-21 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34148

View file

@ -1282,7 +1282,7 @@ init_reg_autoinc (void)
requires secondary reloads, disallow its class from
being used in such addresses. */
if ((secondary_reload_class (1, base_class, m, r)
if ((secondary_reload_class (0, base_class, m, r)
|| secondary_reload_class (1, base_class, m, r))
&& ! auto_inc_dec_reg_p (r, m))
forbidden_inc_dec_class[i] = 1;