OSDN Git Service

Add the nearbyint -> FNEARBYINT mapping to BasicTargetTransformInfo
authorHal Finkel <hfinkel@anl.gov>
Mon, 8 Jul 2013 03:24:07 +0000 (03:24 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 8 Jul 2013 03:24:07 +0000 (03:24 +0000)
commit04b84c2f92b8c9cf863853eca33f47f9fbd80fd1
tree2130f47502e78d4481c95a47adaa6f2b0b8fd1fd
parent2abe4eeaf99c8eb20c8448677aa1be6ee5b7d3c7
Add the nearbyint -> FNEARBYINT mapping to BasicTargetTransformInfo

This fixes an oversight that Intrinsic::nearbyint was not being mapped to
ISD::FNEARBYINT (thus fixing the over-optimistic cost we were assigning to
nearbyint calls for some targets).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185783 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BasicTargetTransformInfo.cpp
test/Analysis/CostModel/X86/intrinsic-cost.ll