[patch i386]: Expand sibling-tail-calls via accumulator register

Jeff Law law@redhat.com
Fri May 30 17:15:00 GMT 2014


On 05/30/14 10:51, Kai Tietz wrote:
> ----- Original Message -----
>> On 05/30/2014 01:08 AM, Kai Tietz wrote:
>>> (define_predicate "sibcall_memory_operand"
>>>    (match_operand 0 "memory_operand")
>>> {
>>>    return CONSTANT_P (op);
>>> })
>>
>> Surely that always returns false?  Surely XEXP (op, 0) so that you look at
>> the
>> address, not the memory.
>>
>>
>> r~
>>
>
> Doh ... of course
>
>
> (define_predicate "sibcall_memory_operand"
>    (match_operand 0 "memory_operand")
> {
>    return CONSTANT_P (XEXP (op, 0));
> })
>
>
> Actually I tested the proper version :}
In that case, it's good to go.  OK for the trunk.

jeff



More information about the Gcc-patches mailing list