From aa71bdd3afe04b7f07e598b57b95ac580eaf036c Mon Sep 17 00:00:00 2001 From: Michael Kuperstein Date: Wed, 6 Jul 2016 17:30:56 +0000 Subject: [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 --- llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/test/Transforms/LoopVectorize') 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 -- cgit v1.2.3