[llvm-dev] [RFC] Canonicalize libcalls to intrinsics

Davide Italiano via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 29 16:34:20 PST 2016


On Fri, Jan 29, 2016 at 4:27 PM, Philip Reames via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
>
> On 01/27/2016 05:53 PM, Matt Arsenault via llvm-dev wrote:
>>
>> Hi,
>>
>> I would like to propose that when available, if a C builtin function has
>> an equivalent llvm intrinsic, that the intrinsic be the preferred form. The
>> equivalent clang __builtin should emit the intrinsic, and SimplifyLibCalls
>> should replace calls with the intrinsic.
>

I strongly support this. I'll be more than happy to review the
SimplifyLibCalls bits.

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-dev mailing list