Constfold trunc,rint,nearbyint,ceil and floor using APFloat
authorKarthik Bhat <kv.bhat@samsung.com>
Tue, 21 Jul 2015 08:52:23 +0000 (08:52 +0000)
committerKarthik Bhat <kv.bhat@samsung.com>
Tue, 21 Jul 2015 08:52:23 +0000 (08:52 +0000)
commitd818e38ff979c21577abada60057c83946852aeb
treed4562b356eacf3b0853e142c0ac92ab970810ff5
parent6268bacc0f06a7a929df37228cf464929a9f866b
Constfold trunc,rint,nearbyint,ceil and floor using APFloat
A patch by Chakshu Grover!
This patch allows constfolding of trunc,rint,nearbyint,ceil and floor intrinsics using APFloat class.
Differential Revision: http://reviews.llvm.org/D11144

llvm-svn: 242763
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstCombine/intrinsics.ll