[LLVMdev] should AlwaysInliner inline this case?

Liu Xin navy.xliu at gmail.com
Sun Jan 4 00:04:48 PST 2015


%294 = call float bitcast (float (float, float*)* @__gpu_modff to float (
float, i64)*)(float %293, i64 %preg.212.addr.0)

as you may know, some gpu backends don't support function call. we need to
make sure to inline all functions here. however, Inliner can not figure out
that this is a valid callsite in this form. actually, it is.  in C words,
cast a function and then call should be treat as callsite, right?

thanks,

--lx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150104/60734c2e/attachment.html>


More information about the llvm-dev mailing list