[cfe-dev] Inlining function calls to complex numbers functions

Hal Finkel via cfe-dev cfe-dev at lists.llvm.org
Tue Aug 8 05:30:15 PDT 2017


On 08/07/2017 02:24 PM, Przemek Leśniak via cfe-dev wrote:
> Hello clang developers,
>
> Recently I've run into issue where gcc outperforms clang by many 
> factors. After investigation and profiling I've noticed that calls to 
> some complex numbers operations like "cabs" aren't inlined but rather 
> dynamically linked (which doesn't happen in case of gcc). Further 
> investigation shows that (looking at lib/CodeGen/CGBuiltin.cpp) clang 
> has very few basic builtins for complex numbers and missing out some 
> important ones, is there any reason why wasn't this implemented? And 
> if there is no reason, is there a possibility to have such feature in 
> clang? I could possibly add some of these functions, as I'm a student 
> and I'd feel great to have some lines of code in clang compiler.

Please do feel free to file a bug (at https://bugs.llvm.org/) and/or 
submit a patch (e.g., 
http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface). 
Contributions in this regard are certainly welcome.

  -Hal

>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170808/10c9669c/attachment.html>


More information about the cfe-dev mailing list