OSDN Git Service

[X86][AVX] Fixed v16i16/v32i8 ADD/SUB costs on AVX1 subtargets
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Nov 2016 14:45:16 +0000 (14:45 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Nov 2016 14:45:16 +0000 (14:45 +0000)
commit2e6f35ab882a2f81992669d4d38756c8742add6a
tree2bbe2087ad514541ff243911c99823c22218dfb2
parent4bbcd0ad601459e28a34d8357e2ce5e8efa38522
[X86][AVX] Fixed v16i16/v32i8 ADD/SUB costs on AVX1 subtargets

Add explicit v16i16/v32i8 ADD/SUB costs, matching the costs of v4i64/v8i32 - they were missing for some reason.

This has side effects on the LV max bandwidth tests (AVX1 now prefers 128-bit vectors vs AVX2 which still prefers 256-bit)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/arith.ll
test/Transforms/LoopVectorize/X86/vector_max_bandwidth.ll