GNU bug report logs - #14047
more aggressive inlining

Previous Next

Package: guile;

Reported by: Daniel Llorens <daniel.llorens <at> bluewin.ch>

Date: Mon, 25 Mar 2013 09:45:02 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Llorens <daniel.llorens <at> bluewin.ch>
To: bug-guile <at> gnu.org
Subject: more aggressive inlining
Date: Mon, 25 Mar 2013 10:42:25 +0100
On Mar 1, 2013, at 10:44, Andy Wingo wrote:

> On Fri 01 Mar 2013 10:01, Daniel Llorens <daniel.llorens <at> bluewin.ch> 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.






This bug report was last modified 12 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.