Skip to content

Commit d63c8fe

Browse files
committed
[clang][CodeGen] Make tbaa-array test more robust
Avoid unintentional matches against extra load/stores in the unoptimized LLVM IR.
1 parent af32972 commit d63c8fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/test/CodeGen/tbaa-array.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -triple x86_64-linux -O1 -disable-llvm-passes %s \
1+
// RUN: %clang_cc1 -triple x86_64-linux -O1 %s \
22
// RUN: -emit-llvm -o - | FileCheck %s
3-
// RUN: %clang_cc1 -triple x86_64-linux -O1 -disable-llvm-passes %s \
3+
// RUN: %clang_cc1 -triple x86_64-linux -O1 %s \
44
// RUN: -new-struct-path-tbaa -emit-llvm -o - | \
55
// RUN: FileCheck -check-prefix=CHECK-NEW %s
66
//
@@ -45,7 +45,6 @@ int bar3(C *c, int j) {
4545
// CHECK-NEW-DAG: [[TYPE_char:!.*]] = !{{{.*}}, i64 1, !"omnipotent char"}
4646
// CHECK-NEW-DAG: [[TYPE_int:!.*]] = !{[[TYPE_char]], i64 4, !"int"}
4747
// CHECK-NEW-DAG: [[TAG_int]] = !{[[TYPE_int]], [[TYPE_int]], i64 0, i64 4}
48-
// CHECK-NEW-DAG: [[TYPE_pointer:!.*]] = !{[[TYPE_char]], i64 8, !"any pointer"}
4948
// CHECK-NEW-DAG: [[TYPE_A:!.*]] = !{[[TYPE_char]], i64 4, !"_ZTS1A", [[TYPE_int]], i64 0, i64 4}
5049
// CHECK-NEW-DAG: [[TAG_A_i]] = !{[[TYPE_A]], [[TYPE_int]], i64 0, i64 4}
5150
// CHECK-NEW-DAG: [[TYPE_C:!.*]] = !{[[TYPE_char]], i64 16, !"_ZTS1C", [[TYPE_int]], i64 0, i64 4, [[TYPE_int]], i64 4, i64 12}

0 commit comments

Comments
 (0)