[llvm-commits] [llvm] r63751 - /llvm/trunk/lib/Target/X86/README-SSE.txt

Chris Lattner clattner at apple.com
Wed Feb 4 11:46:53 PST 2009


On Feb 4, 2009, at 11:43 AM, Dan Gohman wrote:

>> +We should use a dynamic programming based approach to tell when
>> using FPStack
>> +operations is cheaper than SSE.  SciMark montecarlo contains code
>> like this
>> +for example:
>> +
>> +double MonteCarlo_num_flops(int Num_samples) {
>> +    return ((double) Num_samples)* 4.0;
>> +}
>
> This looks like a capital opportunity for inlining.  It seems that
> this kind of thing
> only really matters in small functions when the compiler is hemmed in
> by the
> ABI. If code like this is hot, inlining it would probably yield a much
> better result
> than the best x87 boondoggle could achieve.

The caller and callee are defined in separate files and the LTO wasn't  
being used.

-Chris



More information about the llvm-commits mailing list