[llvm-commits] [llvm] r93448 - /llvm/trunk/lib/Analysis/InlineCost.cpp

Chris Lattner clattner at apple.com
Mon Jan 18 13:03:31 PST 2010


On Jan 18, 2010, at 1:32 AM, Duncan Sands wrote:

>> I don't think the code should be able to be turned off - I can see  
>> doing it in SelectionDAGBuilder since it's an "optimization", but  
>> we're already in an opt pass here.
>
> Likewise, in a free-standing environment a function called "sqrt"  
> may have
> nothing to do with the sqrt function you are thinking of, even if it  
> has the
> same prototype.

That is a separate issue. If anyone starts caring about it and/or -fno- 
builtin-foo, we can add a function attribute to handle it.

-Chris



More information about the llvm-commits mailing list