summaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-08-08 04:31:34 +0000
committerHal Finkel <hfinkel@anl.gov>2013-08-08 04:31:34 +0000
commit05a4d2642b415e3332651733015b656bc3c7b9bc (patch)
treedc98d38fad5211ccd39659ff641addbed87c2e36 /lib/Transforms/Vectorize/SLPVectorizer.cpp
parent9706d43b56e16eb3029314e02c499305284e99f1 (diff)
downloadllvm-05a4d2642b415e3332651733015b656bc3c7b9bc.tar.gz
llvm-05a4d2642b415e3332651733015b656bc3c7b9bc.tar.bz2
llvm-05a4d2642b415e3332651733015b656bc3c7b9bc.tar.xz
PPC: Map frin to round() not nearbyint() and rint()
Making use of the recently-added ISD::FROUND, which allows for custom lowering of round(), the PPC backend will now map frin to round(). Previously, we had been using frin to lower nearbyint() (and rint() via some custom lowering to handle the extra fenv flags requirements), but only in fast-math mode because frin does not tie-to-even. Several users had complained about this behavior, and this new mapping of frin to round is certainly more appropriate (and does not require fast-math mode). In effect, this reverts r178362 (and part of r178337, replacing the nearbyint mapping with the round mapping). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions