[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14047: more aggressive inlining
From: |
Andy Wingo |
Subject: |
bug#14047: more aggressive inlining |
Date: |
Wed, 27 Mar 2013 20:31:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
On Mon 25 Mar 2013 10:42, Daniel Llorens <address@hidden> writes:
>> On Fri 01 Mar 2013 10:01, Daniel Llorens <address@hidden> writes:
>>
>>> scheme@(guile-user)> ,optimize (vector-ref #(1 2 3) 0)
>>> $1 = 1
>>> scheme@(guile-user)> ,optimize (array-ref #(1 2 3) 0)
>>> $2 = (array-ref '#(1 2 3) 0)
>>
>> File a bug for this case, this sort of thing is totally fixable :)
>
> So I think this use of array-ref should be inlined.
>
> Same for other simple functions such as e.g.
>
> scheme@(guile-user)> ,optimize (real-part 1+1i)
> $1 = (real-part 1.0+1.0i)
> scheme@(guile-user)>
>
> imag-part, magnitude, and so on.
If you would like to make a precise list, that would be helpful.
Cheers,
A
--
http://wingolog.org/