]> granicus.if.org Git - llvm/commit
[ConstantFolding] Expand folding of some library functions
authorEvandro Menezes <e.menezes@samsung.com>
Thu, 12 Sep 2019 21:23:22 +0000 (21:23 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Thu, 12 Sep 2019 21:23:22 +0000 (21:23 +0000)
commita53ef73293384940e969a3da6f01a9e9bab1f90b
tree9195571cabebe5e80bdd87c641c251ef63f0f6fb
parentc77b243d059c207f3a4a93e0aff12a49e1f77a46
[ConstantFolding] Expand folding of some library functions

Expanding the folding of `nearbyint()`, `rint()` and `trunc()` to library
functions, in addition to the current support for intrinsics.

Differential revision: https://reviews.llvm.org/D67468

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Analysis/ConstantFolding/rint.ll [new file with mode: 0644]
test/Analysis/ConstantFolding/round.ll [moved from test/Transforms/InstCombine/round.ll with 86% similarity]
test/Analysis/ConstantFolding/trunc.ll [new file with mode: 0644]