[llvm-commits] r55638 - /llvm/trunk/include/llvm/Function.h

Duncan Sands baldrick at free.fr
Mon Sep 29 09:23:28 PDT 2008


Hi,

> > I don't understand what you are saying here.  Suppose XYZ is no-sse.
> > It calls S which is marked sse and does a lot of floating point
> > computation (but doesn't use sse intrinsics).  If I understand you
> > right, the inliner can inline S into XYZ.
> 
> I think you misunderstood ...
> 
> "So, inline S into ... only if code generator will not be forced to  
> use SSE instructions for the code copied from S."  Here "only if" is  
> important :)
> 
> Later I mentioned, "The inliner needs to know the LLVM IR for function  
> S does not use SSE intrinsics in this case. The inliner needs to  
> detect SSE uses at IR level."
> 
> If the inliner can not detect this or decides to not detect this then  
> it should not inline S into XYZ in this case. It is obvious.

so any use of floating point (eg: fp multiplication) should be understood
as using SSE, and would stop the inliner from inlining?

Ciao,

Duncan.



More information about the llvm-commits mailing list