[llvm] r293162 - [SLP] Add one more reduction operation for extra argument test to make

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 01:18:41 PST 2017


Author: abataev
Date: Thu Jan 26 03:18:41 2017
New Revision: 293162

URL: http://llvm.org/viewvc/llvm-project?rev=293162&view=rev
Log:
[SLP] Add one more reduction operation for extra argument test to make
it vectorizable.

Modified:
    llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll

Modified: llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll?rev=293162&r1=293161&r2=293162&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll (original)
+++ llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll Thu Jan 26 03:18:41 2017
@@ -1035,7 +1035,10 @@ define float @extra_args_no_replace(floa
 ; CHECK-NEXT:    [[ARRAYIDX3_5:%.*]] = getelementptr inbounds float, float* [[X]], i64 6
 ; CHECK-NEXT:    [[TMP6:%.*]] = load float, float* [[ARRAYIDX3_5]], align 4
 ; CHECK-NEXT:    [[ADD4_5:%.*]] = fadd fast float [[TMP6]], [[ADD4_4]]
-; CHECK-NEXT:    ret float [[ADD4_5]]
+; CHECK-NEXT:    [[ARRAYIDX3_6:%.*]] = getelementptr inbounds float, float* [[X]], i64 7
+; CHECK-NEXT:    [[TMP7:%.*]] = load float, float* [[ARRAYIDX3_6]], align 4
+; CHECK-NEXT:    [[ADD4_6:%.*]] = fadd fast float [[TMP7]], [[ADD4_5]]
+; CHECK-NEXT:    ret float [[ADD4_6]]
 ;
   entry:
   %mul = mul nsw i32 %b, %a
@@ -1064,6 +1067,9 @@ define float @extra_args_no_replace(floa
   %arrayidx3.5 = getelementptr inbounds float, float* %x, i64 6
   %6 = load float, float* %arrayidx3.5, align 4
   %add4.5 = fadd fast float %6, %add4.4
-  ret float %add4.5
+  %arrayidx3.6 = getelementptr inbounds float, float* %x, i64 7
+  %7 = load float, float* %arrayidx3.6, align 4
+  %add4.6 = fadd fast float %7, %add4.5
+  ret float %add4.6
 }
 




More information about the llvm-commits mailing list