altivec: vector constant misc
Aldy Hernandez
aldyh@redhat.com
Sun Feb 17 05:40:00 GMT 2002
On Saturday, February 16, 2002, at 11:23 AM, Richard Henderson wrote:
> On Sat, Feb 16, 2002 at 09:40:24AM +1100, Aldy Hernandez wrote:
>> btw, i'm revising my patch to remove the (set (reg) (const_int 0))
>> pattern for vectors in favor of just emit_insn'ing the XOR
>> directly. duh.
>
> Not duh.
>
> (set (reg) (constant))
>
> has no dependencies on previous instructions and clearly
> kills the value in REG. On the other hand,
>
> (set (reg) (xor (reg) (reg)))
>
> apparently uses the original value in reg.
and i just ran into a few of those. not to mention, reload
insisted on doing peculiar things. i've left the
(set (reg) (constant)) as it was-- well, now with the vec_const
way of doing things.
>
>
>
> r~
>
>
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.
More information about the Gcc-patches
mailing list