brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1013 B · a8a09a2 Raw
35 lines · plain
1; RUN: opt < %s -aa-pipeline=basic-aa -passes=gvn  -S | FileCheck %s2 3; PR159674; BasicAA claims no alias when there is (due to a problem when the MaxLookup5; limit was reached).6 7target datalayout = "e"8 9%struct.foo = type { i32, i32 }10 11define i32 @main() {12  %t = alloca %struct.foo, align 413  store i32 1, ptr %t, align 414  %1 = getelementptr inbounds %struct.foo, ptr %t, i64 115  %2 = getelementptr inbounds i8, ptr %1, i32 -116  store i8 0, ptr %217  %3 = getelementptr inbounds i8, ptr %2, i32 -118  store i8 0, ptr %319  %4 = getelementptr inbounds i8, ptr %3, i32 -120  store i8 0, ptr %421  %5 = getelementptr inbounds i8, ptr %4, i32 -122  store i8 0, ptr %523  %6 = getelementptr inbounds i8, ptr %5, i32 -124  store i8 0, ptr %625  %7 = getelementptr inbounds i8, ptr %6, i32 -126  store i8 0, ptr %727  %8 = getelementptr inbounds i8, ptr %7, i32 -128  store i8 0, ptr %829  %9 = getelementptr inbounds i8, ptr %8, i32 -130  store i8 0, ptr %931  %10 = load i32, ptr %t, align 432  ret i32 %1033; CHECK: ret i32 %1034}35