[llvm] r293153 - [SLP] Fixed test for extra arguments in horizontal reductions.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 25 22:19:53 PST 2017
Author: abataev
Date: Thu Jan 26 00:19:52 2017
New Revision: 293153
URL: http://llvm.org/viewvc/llvm-project?rev=293153&view=rev
Log:
[SLP] Fixed test for extra arguments in horizontal reductions.
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=293153&r1=293152&r2=293153&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll (original)
+++ llvm/trunk/test/Transforms/SLPVectorizer/X86/horizontal-list.ll Thu Jan 26 00:19:52 2017
@@ -1006,13 +1006,14 @@ define float @extra_args(float* nocaptur
ret float %add4.6
}
-define float @extra_args_no_replace(float* nocapture readonly %x, i32 %a, i32 %b) {
+define float @extra_args_no_replace(float* nocapture readonly %x, i32 %a, i32 %b, i32 %c) {
; CHECK-LABEL: @extra_args_no_replace(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[MUL:%.*]] = mul nsw i32 [[B:%.*]], [[A:%.*]]
; CHECK-NEXT: [[CONV:%.*]] = sitofp i32 [[MUL]] to float
; CHECK-NEXT: [[TMP0:%.*]] = load float, float* [[X:%.*]], align 4
-; CHECK-NEXT: [[ADDC:%.*]] = fadd fast float [[CONV]], 3.000000e+00
+; CHECK-NEXT: [[CONVC:%.*]] = sitofp i32 [[C:%.*]] to float
+; CHECK-NEXT: [[ADDC:%.*]] = fadd fast float [[CONVC]], 3.000000e+00
; CHECK-NEXT: [[ADD:%.*]] = fadd fast float [[CONV]], [[ADDC]]
; CHECK-NEXT: [[ADD1:%.*]] = fadd fast float [[TMP0]], [[ADD]]
; CHECK-NEXT: [[ARRAYIDX3:%.*]] = getelementptr inbounds float, float* [[X]], i64 1
@@ -1040,7 +1041,8 @@ define float @extra_args_no_replace(floa
%mul = mul nsw i32 %b, %a
%conv = sitofp i32 %mul to float
%0 = load float, float* %x, align 4
- %addc = fadd fast float %conv, 3.000000e+00
+ %convc = sitofp i32 %c to float
+ %addc = fadd fast float %convc, 3.000000e+00
%add = fadd fast float %conv, %addc
%add1 = fadd fast float %0, %add
%arrayidx3 = getelementptr inbounds float, float* %x, i64 1
More information about the llvm-commits
mailing list