[ConstantFolding] Fold calls to FP remainder function
authorEhud Katz <ehudkatz@gmail.com>
Wed, 12 Feb 2020 11:14:09 +0000 (13:14 +0200)
committerEhud Katz <ehudkatz@gmail.com>
Wed, 12 Feb 2020 11:21:18 +0000 (13:21 +0200)
commit2470d2988a057024b7bab99ace3749e6b770c8a0
treeb7b46792ecbdad288bbfbe6d2acc4537b4470cc7
parente9900b1fbff992baadd3e925cc3a213abcaee2a7
[ConstantFolding] Fold calls to FP remainder function

With the fixed implementation of the "remainder" operation in
rG9d0956ebd471, we can now add support to folding calls to it.

Differential Revision: https://reviews.llvm.org/D69777
llvm/include/llvm/Analysis/TargetLibraryInfo.def
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/test/Analysis/ConstantFolding/math-2.ll