diff options
Diffstat (limited to 'polly/test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll')
-rw-r--r-- | polly/test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/polly/test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll b/polly/test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll index 3c3566b4cb8e..8d0de03e9866 100644 --- a/polly/test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll +++ b/polly/test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll @@ -9,17 +9,17 @@ ; Check we do not crash. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -%struct.codebook.48.118.748.1882.2972 = type { i64, i64, i64, %struct.static_codebook.19.89.719.1853.2971*, float*, i32*, i32*, i8*, i32*, i32, i32 } -%struct.static_codebook.19.89.719.1853.2971 = type { i64, i64, i64*, i32, i64, i64, i32, i32, i64*, %struct.encode_aux_nearestmatch.16.86.716.1850.2968*, %struct.encode_aux_threshmatch.17.87.717.1851.2969*, %struct.encode_aux_pigeonhole.18.88.718.1852.2970*, i32 } -%struct.encode_aux_nearestmatch.16.86.716.1850.2968 = type { i64*, i64*, i64*, i64*, i64, i64 } -%struct.encode_aux_threshmatch.17.87.717.1851.2969 = type { float*, i64*, i32, i32 } -%struct.encode_aux_pigeonhole.18.88.718.1852.2970 = type { float, float, i32, i32, i64*, i64, i64*, i64*, i64* } +%struct.codebook.48.118.748.1882.2972 = type { i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 } +%struct.static_codebook.19.89.719.1853.2971 = type { i64, i64, ptr, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, i32 } +%struct.encode_aux_nearestmatch.16.86.716.1850.2968 = type { ptr, ptr, ptr, ptr, i64, i64 } +%struct.encode_aux_threshmatch.17.87.717.1851.2969 = type { ptr, ptr, i32, i32 } +%struct.encode_aux_pigeonhole.18.88.718.1852.2970 = type { float, float, i32, i32, ptr, i64, ptr, ptr, ptr } ; Function Attrs: inlinehint nounwind uwtable declare i64 @decode_packed_entry_number() #0 ; Function Attrs: nounwind uwtable -define void @vorbis_book_decodev_set(%struct.codebook.48.118.748.1882.2972* %book) #1 { +define void @vorbis_book_decodev_set(ptr %book) #1 { entry: br i1 undef, label %for.body, label %return @@ -31,25 +31,23 @@ for.body: ; preds = %for.cond.loopexit, br i1 undef, label %return, label %if.end if.end: ; preds = %for.body - %valuelist = getelementptr inbounds %struct.codebook.48.118.748.1882.2972, %struct.codebook.48.118.748.1882.2972* %book, i64 0, i32 4 - %0 = load float*, float** %valuelist, align 8 + %valuelist = getelementptr inbounds %struct.codebook.48.118.748.1882.2972, ptr %book, i64 0, i32 4 + %0 = load ptr, ptr %valuelist, align 8 %sext = shl i64 %call, 32 %conv4 = ashr exact i64 %sext, 32 - %dim = getelementptr inbounds %struct.codebook.48.118.748.1882.2972, %struct.codebook.48.118.748.1882.2972* %book, i64 0, i32 0 - %1 = load i64, i64* %dim, align 8 + %1 = load i64, ptr %book, align 8 %mul = mul nsw i64 %1, %conv4 - %add.ptr = getelementptr inbounds float, float* %0, i64 %mul + %add.ptr = getelementptr inbounds float, ptr %0, i64 %mul %cmp8.7 = icmp sgt i64 %1, 0 br i1 %cmp8.7, label %for.body.10, label %for.cond.loopexit for.body.10: ; preds = %for.body.10, %if.end %indvars.iv15 = phi i64 [ %indvars.iv.next16, %for.body.10 ], [ 0, %if.end ] %indvars.iv.next16 = add nuw nsw i64 %indvars.iv15, 1 - %arrayidx = getelementptr inbounds float, float* %add.ptr, i64 %indvars.iv15 - %2 = bitcast float* %arrayidx to i32* - %3 = load i32, i32* %2, align 4 - %4 = load i64, i64* %dim, align 8 - %cmp8 = icmp slt i64 %indvars.iv.next16, %4 + %arrayidx = getelementptr inbounds float, ptr %add.ptr, i64 %indvars.iv15 + %2 = load i32, ptr %arrayidx, align 4 + %3 = load i64, ptr %book, align 8 + %cmp8 = icmp slt i64 %indvars.iv.next16, %3 br i1 %cmp8, label %for.body.10, label %for.cond.loopexit return: ; preds = %for.body, %for.cond.loopexit, %entry |