diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 21:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-10 21:23:04 +0000 |
commit | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/SLPVectorizer/X86/phi.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
parent | 4c5e43da7792f75567b693105cc53e3f1992ad98 (diff) | |
download | external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.zip external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.gz external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.bz2 |
Merge "Update aosp/master llvm for rebase to r233350"
Diffstat (limited to 'test/Transforms/SLPVectorizer/X86/phi.ll')
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/phi.ll | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/test/Transforms/SLPVectorizer/X86/phi.ll b/test/Transforms/SLPVectorizer/X86/phi.ll index 0c53b60..ef94467 100644 --- a/test/Transforms/SLPVectorizer/X86/phi.ll +++ b/test/Transforms/SLPVectorizer/X86/phi.ll @@ -29,17 +29,17 @@ entry: br i1 %tobool, label %if.else, label %if.end if.else: ; preds = %entry - %arrayidx = getelementptr inbounds double* %A, i64 10 - %0 = load double* %arrayidx, align 8 - %arrayidx1 = getelementptr inbounds double* %A, i64 11 - %1 = load double* %arrayidx1, align 8 + %arrayidx = getelementptr inbounds double, double* %A, i64 10 + %0 = load double, double* %arrayidx, align 8 + %arrayidx1 = getelementptr inbounds double, double* %A, i64 11 + %1 = load double, double* %arrayidx1, align 8 br label %if.end if.end: ; preds = %entry, %if.else %A0.0 = phi double [ %0, %if.else ], [ 3.000000e+00, %entry ] %A1.0 = phi double [ %1, %if.else ], [ 5.000000e+00, %entry ] store double %A0.0, double* %A, align 8 - %arrayidx3 = getelementptr inbounds double* %A, i64 1 + %arrayidx3 = getelementptr inbounds double, double* %A, i64 1 store double %A1.0, double* %arrayidx3, align 8 ret i32 undef } @@ -69,9 +69,9 @@ if.end: ; preds = %entry, %if.else ;CHECK: ret define i32 @foo2(double* noalias nocapture %B, double* noalias nocapture %A, i32 %n, i32 %m) #0 { entry: - %arrayidx = getelementptr inbounds double* %A, i64 1 - %0 = load double* %arrayidx, align 8 - %1 = load double* %A, align 8 + %arrayidx = getelementptr inbounds double, double* %A, i64 1 + %0 = load double, double* %arrayidx, align 8 + %1 = load double, double* %A, align 8 br label %for.body for.body: ; preds = %for.body, %entry @@ -90,7 +90,7 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body store double %add5, double* %B, align 8 - %arrayidx7 = getelementptr inbounds double* %B, i64 1 + %arrayidx7 = getelementptr inbounds double, double* %B, i64 1 store double %add4, double* %arrayidx7, align 8 ret i32 0 } @@ -123,15 +123,15 @@ for.end: ; preds = %for.body define float @foo3(float* nocapture readonly %A) #0 { entry: - %0 = load float* %A, align 4 - %arrayidx1 = getelementptr inbounds float* %A, i64 1 - %1 = load float* %arrayidx1, align 4 - %arrayidx2 = getelementptr inbounds float* %A, i64 2 - %2 = load float* %arrayidx2, align 4 - %arrayidx3 = getelementptr inbounds float* %A, i64 3 - %3 = load float* %arrayidx3, align 4 - %arrayidx4 = getelementptr inbounds float* %A, i64 4 - %4 = load float* %arrayidx4, align 4 + %0 = load float, float* %A, align 4 + %arrayidx1 = getelementptr inbounds float, float* %A, i64 1 + %1 = load float, float* %arrayidx1, align 4 + %arrayidx2 = getelementptr inbounds float, float* %A, i64 2 + %2 = load float, float* %arrayidx2, align 4 + %arrayidx3 = getelementptr inbounds float, float* %A, i64 3 + %3 = load float, float* %arrayidx3, align 4 + %arrayidx4 = getelementptr inbounds float, float* %A, i64 4 + %4 = load float, float* %arrayidx4, align 4 br label %for.body for.body: ; preds = %for.body, %entry @@ -148,18 +148,18 @@ for.body: ; preds = %for.body, %entry %mul10 = fmul float %5, 8.000000e+00 %add11 = fadd float %G.053, %mul10 %7 = add nsw i64 %indvars.iv, 2 - %arrayidx14 = getelementptr inbounds float* %A, i64 %7 - %8 = load float* %arrayidx14, align 4 + %arrayidx14 = getelementptr inbounds float, float* %A, i64 %7 + %8 = load float, float* %arrayidx14, align 4 %mul15 = fmul float %8, 9.000000e+00 %add16 = fadd float %B.054, %mul15 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 3 - %arrayidx19 = getelementptr inbounds float* %A, i64 %indvars.iv.next - %9 = load float* %arrayidx19, align 4 + %arrayidx19 = getelementptr inbounds float, float* %A, i64 %indvars.iv.next + %9 = load float, float* %arrayidx19, align 4 %mul20 = fmul float %9, 1.000000e+01 %add21 = fadd float %Y.055, %mul20 %10 = add nsw i64 %indvars.iv, 4 - %arrayidx24 = getelementptr inbounds float* %A, i64 %10 - %11 = load float* %arrayidx24, align 4 + %arrayidx24 = getelementptr inbounds float, float* %A, i64 %10 + %11 = load float, float* %arrayidx24, align 4 %mul25 = fmul float %11, 1.100000e+01 %add26 = fadd float %P.056, %mul25 %12 = trunc i64 %indvars.iv.next to i32 @@ -215,22 +215,22 @@ define void @test(x86_fp80* %i1, x86_fp80* %i2, x86_fp80* %o) { ; We disable the vectorization of x86_fp80 for now. entry: - %i1.0 = load x86_fp80* %i1, align 16 - %i1.gep1 = getelementptr x86_fp80* %i1, i64 1 - %i1.1 = load x86_fp80* %i1.gep1, align 16 -; CHECK: load x86_fp80* -; CHECK: load x86_fp80* + %i1.0 = load x86_fp80, x86_fp80* %i1, align 16 + %i1.gep1 = getelementptr x86_fp80, x86_fp80* %i1, i64 1 + %i1.1 = load x86_fp80, x86_fp80* %i1.gep1, align 16 +; CHECK: load x86_fp80, x86_fp80* +; CHECK: load x86_fp80, x86_fp80* ; CHECK-NOT: insertelement <2 x x86_fp80> ; CHECK-NOT: insertelement <2 x x86_fp80> br i1 undef, label %then, label %end then: - %i2.gep0 = getelementptr inbounds x86_fp80* %i2, i64 0 - %i2.0 = load x86_fp80* %i2.gep0, align 16 - %i2.gep1 = getelementptr inbounds x86_fp80* %i2, i64 1 - %i2.1 = load x86_fp80* %i2.gep1, align 16 -; CHECK: load x86_fp80* -; CHECK: load x86_fp80* + %i2.gep0 = getelementptr inbounds x86_fp80, x86_fp80* %i2, i64 0 + %i2.0 = load x86_fp80, x86_fp80* %i2.gep0, align 16 + %i2.gep1 = getelementptr inbounds x86_fp80, x86_fp80* %i2, i64 1 + %i2.1 = load x86_fp80, x86_fp80* %i2.gep1, align 16 +; CHECK: load x86_fp80, x86_fp80* +; CHECK: load x86_fp80, x86_fp80* ; CHECK-NOT: insertelement <2 x x86_fp80> ; CHECK-NOT: insertelement <2 x x86_fp80> br label %end @@ -242,7 +242,7 @@ end: ; CHECK-NOT: extractelement <2 x x86_fp80> ; CHECK-NOT: extractelement <2 x x86_fp80> store x86_fp80 %phi0, x86_fp80* %o, align 16 - %o.gep1 = getelementptr inbounds x86_fp80* %o, i64 1 + %o.gep1 = getelementptr inbounds x86_fp80, x86_fp80* %o, i64 1 store x86_fp80 %phi1, x86_fp80* %o.gep1, align 16 ret void } |