[LLVMdev] VMKit assertion failure

Konrad Hinsen konrad.hinsen at fastmail.net
Tue Apr 13 02:29:01 PDT 2010


On 11.04.2010, at 19:14, nicolas geoffray wrote:

> On Sun, Apr 11, 2010 at 7:12 PM, Konrad Hinsen <konrad.hinsen at fastmail.net> wrote
>> I am rather surprised that the size of a method should have an impact on stack usage, but then I haven't looked at all at how VMKit works yet. That's my next project :-)
>> 
> It has no impact on VMKit. The impact is on LLVM optimization passes that do recursive calls.

I see... Could those passes simply be skipped for code blocks that are too large? Ideally in LLVM, since it's LLVM that imposes the restriction? I don't know much about LLVM yet, but my first thought would be that a code handling system should be able to deal with code of any size. It may decide not to optimize unusual cases, but it certainly shouldn't crash.

Konrad.



More information about the llvm-dev mailing list