summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorMichael Kuperstein <mkuper@google.com>2016-07-06 17:30:56 +0000
committerMichael Kuperstein <mkuper@google.com>2016-07-06 17:30:56 +0000
commitaa71bdd3afe04b7f07e598b57b95ac580eaf036c (patch)
treeb9bc162f4c4187ca0073f39558f585a794294f3b /llvm/test/Transforms
parent741b70926f76ddca0f75e219a2c6a7001bbb992c (diff)
downloadbcm5719-llvm-aa71bdd3afe04b7f07e598b57b95ac580eaf036c.tar.gz
bcm5719-llvm-aa71bdd3afe04b7f07e598b57b95ac580eaf036c.zip
[TTI] The cost model should not assume vector casts get completely scalarized
The cost model should not assume vector casts get completely scalarized, since on targets that have vector support, the common case is a partial split up to the legal vector size. So, when a vector cast gets split, the resulting casts end up legal and cheap. Instead of pessimistically assuming scalarization, base TTI can use the costs the concrete TTI provides for the split vector, plus a fudge factor to account for the cost of the split itself. This fudge factor is currently 1 by default, except on AMDGPU where inserts and extracts are considered free. Differential Revision: http://reviews.llvm.org/D21251 llvm-svn: 274642
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll b/llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll
index 23e363eae02..ec7ad1183ee 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll
@@ -17,9 +17,9 @@ target triple = "x86_64-pc_linux"
;}
;AVX512-LABEL: @foo1
-;AVX512: llvm.masked.load.v8i32
-;AVX512: llvm.masked.gather.v8f32
-;AVX512: llvm.masked.store.v8f32
+;AVX512: llvm.masked.load.v16i32
+;AVX512: llvm.masked.gather.v16f32
+;AVX512: llvm.masked.store.v16f32
;AVX512: ret void
; Function Attrs: nounwind uwtable
OpenPOWER on IntegriCloud