reload.c (find_reloads): Swap address_reloaded flags when swapping commutative operands.

* reload.c (find_reloads): Swap address_reloaded flags when
	swapping commutative operands.

From-SVN: r95018
This commit is contained in:
Ulrich Weigand 2005-02-14 15:07:05 +00:00 committed by Ulrich Weigand
parent 891df09c56
commit e88d55cd88
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-02-14 Ulrich Weigand <uweigand@de.ibm.com>
* reload.c (find_reloads): Swap address_reloaded flags when
swapping commutative operands.
2005-02-14 Sebastian Pop <pop@cri.ensmp.fr>
* lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):

View File

@ -3668,6 +3668,10 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known,
pref_or_nothing[commutative] = pref_or_nothing[commutative + 1];
pref_or_nothing[commutative + 1] = t;
t = address_reloaded[commutative];
address_reloaded[commutative] = address_reloaded[commutative + 1];
address_reloaded[commutative + 1] = t;
memcpy (constraints, recog_data.constraints,
noperands * sizeof (char *));
goto try_swapped;