[llvm] r329168 - [X86][CostModel] Use generic SSE levels instead of particular CPUs for shuffle costs

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 04:14:13 PDT 2018


Author: rksimon
Date: Wed Apr  4 04:14:12 2018
New Revision: 329168

URL: http://llvm.org/viewvc/llvm-project?rev=329168&view=rev
Log:
[X86][CostModel] Use generic SSE levels instead of particular CPUs for shuffle costs

Modified:
    llvm/trunk/test/Analysis/CostModel/X86/alternate-shuffle-cost.ll

Modified: llvm/trunk/test/Analysis/CostModel/X86/alternate-shuffle-cost.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CostModel/X86/alternate-shuffle-cost.ll?rev=329168&r1=329167&r2=329168&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CostModel/X86/alternate-shuffle-cost.ll (original)
+++ llvm/trunk/test/Analysis/CostModel/X86/alternate-shuffle-cost.ll Wed Apr  4 04:14:12 2018
@@ -1,8 +1,8 @@
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,-ssse3 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,+sse3,+ssse3 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSSE3
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2 -cost-model -analyze | FileCheck %s -check-prefixes=CHECK,SSE2
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+ssse3 -cost-model -analyze | FileCheck %s -check-prefixes=CHECK,SSSE3
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse4.2 -cost-model -analyze | FileCheck %s -check-prefixes=CHECK,SSE41
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx -cost-model -analyze | FileCheck %s -check-prefixes=CHECK,AVX
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2 -cost-model -analyze | FileCheck %s -check-prefixes=CHECK,AVX2
 
 
 ; Verify the cost model for alternate shuffles.




More information about the llvm-commits mailing list