Expanding the folding of nearbyint(), rint(), round() and trunc() to library functions, in addition to the current support for intrinsics.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D67468
[ConstantFolding] Expand folding of some library functions ClosedPublic Authored by evandro on Sep 11 2019, 2:27 PM.
Details Summary Expanding the folding of nearbyint(), rint(), round() and trunc() to library functions, in addition to the current support for intrinsics.
Diff Detail Event Timelineevandro added a parent revision: D67459: [ConstantFolding] Refactor math functions to use LLVM ones (NFC). This revision is now accepted and ready to land.Sep 12 2019, 11:49 AM Closed by commit rL371774: [ConstantFolding] Expand folding of some library functions (authored by evandro). · Explain WhySep 12 2019, 2:21 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 219806 llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Analysis/ConstantFolding/rint.ll
llvm/test/Analysis/ConstantFolding/round.ll
llvm/test/Analysis/ConstantFolding/trunc.ll
|