[LLVMdev] x86 cogen quality

John Criswell criswell at cs.uiuc.edu
Fri Apr 23 08:36:01 PDT 2004


Finn S Andersen wrote:
> Chris Lattner wrote:
> 
>> You can check out the whole CVS tree at once, which is going to be a lot
>> easier than pulling it down from CVSweb :)  Here are the instructions:
>> http://llvm.cs.uiuc.edu/docs/GettingStarted.html#checkout
>>
> 
> 
> Ouch, how embarrasing - I looked for that place,
> but apparently failed to notice it. Sorry.
> 
> Anyhow, I checked it out as described (in a clean directory), recompiled
> and ... the problem is still there. More strange, it also fails to work 
> with
> the "simple" regalloc.
> 
> I will submit a bug, but first I must figure out how to use the bugpoint
> utility.
> 
> Just to rule out one case of confusion:
> 1) I build the tools with no options, except for pointing out to
>   configure, where the llvmgcc is.
> 2) I try to enable linear scan register allocation by supplying
>    "-regalloc=linearscan" to "lli" - no other options are needed, right ?

This sounds correct.

You may also want to consider trying static code generation with llc, 
which should take the same option.  It will generate a native assembly 
file (.s file), which, in turn, you can compile and link with gcc (you 
could use the assembler directly, but using gcc is much easier as it 
will link in all necessary libraries).

-- John T.

> 
> The code triggering the bug is the "lame" benchmark in the "mibench"
> benchmark suite, by the way.
> 
> best regards,
> /Finn
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev


-- 
*********************************************************************
* John T. Criswell                         Email: criswell at uiuc.edu *
* Research Programmer                                               *
* University of Illinois at Urbana-Champaign                        *
*                                                                   *
* "It's today!" said Piglet. "My favorite day," said Pooh.          *
*********************************************************************





More information about the llvm-dev mailing list