summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2014-03-31 21:54:48 +0000
committerAdam Nemet <anemet@apple.com>2014-03-31 21:54:48 +0000
commit10c4ce25841902b458e3b42906d31d2c7e29dba1 (patch)
treec10ee39ddc34ea163ec93b608e9e139cbbeced02 /llvm/lib
parentd6c432678622d4badca35666bf64d85a1a341616 (diff)
downloadbcm5719-llvm-10c4ce25841902b458e3b42906d31d2c7e29dba1.tar.gz
bcm5719-llvm-10c4ce25841902b458e3b42906d31d2c7e29dba1.zip
[X86] Adjust cost of FP_TO_UINT v4f64->v4i32 as well
Pretty obvious follow-on to r205159 to also handle conversion from double besides float. Fixes <rdar://problem/16373208> llvm-svn: 205253
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index e1e151328fa..ed04cdc4e40 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -528,6 +528,7 @@ unsigned X86TTI::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src) const {
// problem is that the inserts form a read-modify-write chain so latency
// should be factored in too. Inflating the cost per element by 1.
{ ISD::FP_TO_UINT, MVT::v8i32, MVT::v8f32, 8*4 },
+ { ISD::FP_TO_UINT, MVT::v4i32, MVT::v4f64, 4*4 },
};
if (ST->hasAVX2()) {
OpenPOWER on IntegriCloud