[dmd-internals] Is there a reason that inlining happens so early?
Don Clugston
dclugston at gmail.com
Wed Nov 28 23:39:03 PST 2012
On 28 November 2012 14:25, Walter Bright <walter at digitalmars.com> wrote:
> On 11/29/2012 12:02 AM, Don Clugston wrote:
>>
>> On 27 November 2012 22:03, Walter Bright <walter at digitalmars.com> wrote:
>>>
>>> On 11/28/2012 3:11 AM, Don Clugston wrote:
>>>>
>>>> Oooh, you're right. EXCEPT: expression.c 5411: FuncExp's get inlined
>>>> during the semantic3 pass expression.c 5618: DeclarationExps get inlined
>>>> during the semantic3 pass. So, is there anything stopping us from moving
>>>> these guys into the inliner pass?
>>>
>>>
>>> I do not recall the reason for those exceptions, or even if I wrote them.
>>> Is
>>> there an easy way to look back in the git history to see when they
>>> appeared?
>>
>> Well, I wrote this pull to just remove them. And it passes.
>>
>> https://github.com/D-Programming-Language/dmd/pull/1333
>>
> Well, that's one way to find out why it was there!
If that gets merged in, then the most disgusting bit of code I've ever
written can be ripped out of the compiler:
https://github.com/D-Programming-Language/dmd/pull/1334
More information about the dmd-internals
mailing list