[LLVMdev] Re: Newbie questions

Chris Lattner sabre at nondot.org
Wed Apr 26 17:49:18 PDT 2006


On Wed, 26 Apr 2006, Archie Cobbs wrote:
> Tom Tromey wrote:
>> Archie> Perhaps it is. In which case, I guess we need something better or 
>> else
>> Archie> we'll never be able to do certain optimizations.
>> 
>> I'm curious to know which optimizations you have in mind.
>
> E.g. devirtualization: this requires knowing the Java type (not LLVM type)
> of an object. But once you compile to LLVM, that information is lost.
>
> If e.g. you're loading LLVM pre-compiled modules then you can never
> do this optimization because you can't recover the Java type information
> (which is front-end specific).

You can capture this with front-end specific intrinsics if you like.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-dev mailing list