summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-01-05 18:20:25 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-01-05 18:20:25 +0000
commitb01e84424138cdad032a1f7f0cc097c04af22028 (patch)
tree7b6aa48ded34d5492a27f276b2a49fec44863954 /llvm/lib
parente9987a1d2fad218f2da3c78a8bee60ecc87262d9 (diff)
downloadbcm5719-llvm-b01e84424138cdad032a1f7f0cc097c04af22028.tar.gz
bcm5719-llvm-b01e84424138cdad032a1f7f0cc097c04af22028.zip
[CostModel][X86] Include the cost of 256-bit upper subvector extract/insertion in AVX1 v4i64 MUL
Matches other MUL/ADD/SUB 256-bit case on AVX1 llvm-svn: 291149
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index a5958f57422..719f7e7b345 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -556,9 +556,9 @@ int X86TTIImpl::getArithmeticInstrCost(
// A v4i64 multiply is custom lowered as two split v2i64 vectors that then
// are lowered as a series of long multiplies(3), shifts(3) and adds(2)
// Because we believe v4i64 to be a legal type, we must also include the
- // split factor of two in the cost table. Therefore, the cost here is 16
+ // extract+insert in the cost table. Therefore, the cost here is 18
// instead of 8.
- { ISD::MUL, MVT::v4i64, 16 },
+ { ISD::MUL, MVT::v4i64, 18 },
};
// Look for AVX1 lowering tricks.
OpenPOWER on IntegriCloud