This is an archive of the discontinued LLVM Phabricator instance.

[clang] Handle lround/llround builtins
ClosedPublic

Authored by zatrazz on May 1 2019, 11:24 AM.

Details

Summary

As for other floating-point rounding builtins that can be optimized
when build with -fno-math-errno, this patch adds support for lround
and llround. It currently only optimized for AArch64 backend.

This patch depends on https://reviews.llvm.org/D61390

Diff Detail

Event Timeline

zatrazz created this revision.May 1 2019, 11:24 AM
efriedma accepted this revision.May 1 2019, 11:56 AM

Looks fine, once the LLVM changes are settled.

This revision is now accepted and ready to land.May 1 2019, 11:56 AM
zatrazz closed this revision.May 16 2019, 6:40 AM