[llvm] 1edb3ea - [SLP]Fix test arguments, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 10:46:52 PST 2019
Author: Alexey Bataev
Date: 2019-12-19T13:36:21-05:00
New Revision: 1edb3ea6457766d24de5a3cddf2b970e05b35ed3
URL: https://github.com/llvm/llvm-project/commit/1edb3ea6457766d24de5a3cddf2b970e05b35ed3
DIFF: https://github.com/llvm/llvm-project/commit/1edb3ea6457766d24de5a3cddf2b970e05b35ed3.diff
LOG: [SLP]Fix test arguments, NFC.
Added:
Modified:
llvm/test/Transforms/SLPVectorizer/X86/reuse-extracts-in-wider-vect.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SLPVectorizer/X86/reuse-extracts-in-wider-vect.ll b/llvm/test/Transforms/SLPVectorizer/X86/reuse-extracts-in-wider-vect.ll
index 7bd87b957a9a..62fa52c46ce6 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/reuse-extracts-in-wider-vect.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/reuse-extracts-in-wider-vect.ll
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -slp-vectorizer -S -mtriple=x86_64-unknown-linux -march=core-avx2 | FileCheck %s
+; RUN: opt < %s -slp-vectorizer -S -mtriple=x86_64-unknown-linux -mcpu=core-avx2 | FileCheck %s
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
%struct.S = type { [3 x float], [3 x float], [4 x float] }
@@ -16,18 +16,14 @@ define i32 @foo(i32 %0, i32* %1, float* %2) {
; CHECK-NEXT: br label [[T37:%.*]]
; CHECK: t37:
; CHECK-NEXT: [[TMP6:%.*]] = phi <2 x float> [ [[TMP5]], [[TMP3:%.*]] ], [ [[T89:%.*]], [[T37]] ]
-; CHECK-NEXT: [[TMP7:%.*]] = extractelement <2 x float> [[TMP6]], i32 0
-; CHECK-NEXT: [[T20:%.*]] = fdiv fast float 1.000000e+00, [[TMP7]]
-; CHECK-NEXT: [[TMP8:%.*]] = extractelement <2 x float> [[TMP6]], i32 1
-; CHECK-NEXT: [[T24:%.*]] = fdiv fast float 1.000000e+00, [[TMP8]]
+; CHECK-NEXT: [[TMP7:%.*]] = fdiv fast <2 x float> <float 1.000000e+00, float 1.000000e+00>, [[TMP6]]
+; CHECK-NEXT: [[SHUFFLE:%.*]] = shufflevector <2 x float> [[TMP7]], <2 x float> undef, <4 x i32> <i32 0, i32 1, i32 1, i32 1>
; CHECK-NEXT: [[T21:%.*]] = getelementptr inbounds [[STRUCT_S]], %struct.S* [[T4]], i64 0, i32 2, i64 0
; CHECK-NEXT: [[T25:%.*]] = getelementptr inbounds [[STRUCT_S]], %struct.S* [[T4]], i64 0, i32 2, i64 1
; CHECK-NEXT: [[T31:%.*]] = getelementptr inbounds [[STRUCT_S]], %struct.S* [[T4]], i64 0, i32 2, i64 2
; CHECK-NEXT: [[T33:%.*]] = getelementptr inbounds [[STRUCT_S]], %struct.S* [[T4]], i64 0, i32 2, i64 3
-; CHECK-NEXT: store float [[T20]], float* [[T21]], align 4
-; CHECK-NEXT: store float [[T24]], float* [[T25]], align 4
-; CHECK-NEXT: store float [[T24]], float* [[T31]], align 4
-; CHECK-NEXT: store float [[T24]], float* [[T33]], align 4
+; CHECK-NEXT: [[TMP8:%.*]] = bitcast float* [[T21]] to <4 x float>*
+; CHECK-NEXT: store <4 x float> [[SHUFFLE]], <4 x float>* [[TMP8]], align 4
; CHECK-NEXT: [[T88:%.*]] = bitcast float* [[T9]] to <2 x float>*
; CHECK-NEXT: [[T89]] = load <2 x float>, <2 x float>* [[T88]], align 4
; CHECK-NEXT: br i1 undef, label [[T37]], label [[T55:%.*]]
More information about the llvm-commits
mailing list