2014-07-03 16:07 GMT+04:00 Uros Bizjak <ubiz...@gmail.com>:
> On Thu, Jul 3, 2014 at 1:50 PM, Ilya Enkovich <enkovich....@gmail.com> wrote:
>
>> I didn't find a nice way to fix peephole2 patterns to take register
>> constraints into account. Is there any way to do it?
>
> Use REX_SSE_REGNO_P (REGNO (operands[...])) in the insn C constraint.

Peephole doesn't know whether it works with tuned instruction or not,
right? I would need to mark all instructions I modify with some
attribute and then check for it in peephole.

>
>> Also fully restrict xmm8-15 does not seem right.  It is just costly
>> but not fully disallowed.
>
> As said earlier, you can try "Ya*x" as a constraint.

I tried it. It does not seem to affect allocation much. I do not see
any gain on targeted tests.

Ilya

>
> Uros.

Reply via email to