This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] reload: Try alternative with swapped operands before going to the next


Hello!

> 2011-11-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
>
> 	* reload.c (find_reloads): Change the loop nesting when trying an
> 	alternative with swapped operands.

I would just like to point out that constran_operands will have
problems to re-recognize alternative with swapped commutative
operands. The "%" operand modifier is ignored there, so i.e. x86 add
pattern with swapped commutative operands, like:

(set (reg: ax) (plus (reg: bx)(reg: ax)))

will be rejected.

Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]