@@ -142,48 +142,48 @@ int main(int argc, char **argv) {
142
142
// CHECK-NEXT: in esan::processCacheFragCompilationUnitExit: {{.*}}struct-simple.cpp with 5 class(es)/struct(s)
143
143
// CHECK-NEXT: Unregister class.C#3#14#13#13: 3 fields
144
144
// CHECK-NEXT: {{.*}} class C
145
- // CHECK-NEXT: {{.*}} count = 5, ratio = 3
146
- // CHECK-NEXT: {{.*}} # 0: count = 2, type = %struct.anon = type { i32, i32 }
147
- // CHECK-NEXT: {{.*}} # 1: count = 2, type = %union.anon = type { double }
148
- // CHECK-NEXT: {{.*}} # 2: count = 1, type = [10 x i8]
145
+ // CHECK-NEXT: {{.*}} size = 32, count = 5, ratio = 3
146
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 2, type = %struct.anon = type { i32, i32 }
147
+ // CHECK-NEXT: {{.*}} # 1: offset = 8, count = 2, type = %union.anon = type { double }
148
+ // CHECK-NEXT: {{.*}} # 2: offset = 16, count = 1, type = [10 x i8]
149
149
// CHECK-NEXT: Unregister struct.anon#2#11#11: 2 fields
150
150
// CHECK-NEXT: {{.*}} struct anon
151
- // CHECK-NEXT: {{.*}} count = 2, ratio = 1
152
- // CHECK-NEXT: {{.*}} # 0: count = 1, type = i32
153
- // CHECK-NEXT: {{.*}} # 1: count = 1, type = i32
151
+ // CHECK-NEXT: {{.*}} size = 8, count = 2, ratio = 1
152
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 1, type = i32
153
+ // CHECK-NEXT: {{.*}} # 1: offset = 4, count = 1, type = i32
154
154
// CHECK-NEXT: Unregister union.anon#1#3: 1 fields
155
155
// CHECK-NEXT: Unregister struct.S#2#11#11: 2 fields
156
156
// CHECK-NEXT: {{.*}} struct S
157
- // CHECK-NEXT: {{.*}} count = 2, ratio = 2
158
- // CHECK-NEXT: {{.*}} # 0: count = 2, type = i32
159
- // CHECK-NEXT: {{.*}} # 1: count = 0, type = i32
157
+ // CHECK-NEXT: {{.*}} size = 8, count = 2, ratio = 2
158
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 2, type = i32
159
+ // CHECK-NEXT: {{.*}} # 1: offset = 4, count = 0, type = i32
160
160
// CHECK-NEXT: Unregister struct.D#3#11#11#11: 3 fields
161
161
// CHECK-NEXT: {{.*}} struct D
162
- // CHECK-NEXT: {{.*}} count = 2, ratio = 2
163
- // CHECK-NEXT: {{.*}} # 0: count = 1, type = i32
164
- // CHECK-NEXT: {{.*}} # 1: count = 1, type = i32
165
- // CHECK-NEXT: {{.*}} # 2: count = 0, type = i32
162
+ // CHECK-NEXT: {{.*}} size = 12, count = 2, ratio = 2
163
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 1, type = i32
164
+ // CHECK-NEXT: {{.*}} # 1: offset = 4, count = 1, type = i32
165
+ // CHECK-NEXT: {{.*}} # 2: offset = 8, count = 0, type = i32
166
166
// CHECK-NEXT: in esan::processCompilationUnitExit
167
167
// CHECK-NEXT: in esan::processCacheFragCompilationUnitExit: {{.*}}struct-simple.cpp with 0 class(es)/struct(s)
168
168
// CHECK-NEXT: in esan::processCompilationUnitExit
169
169
// CHECK-NEXT: in esan::processCacheFragCompilationUnitExit: {{.*}}struct-simple.cpp with 5 class(es)/struct(s)
170
170
// CHECK-NEXT: Unregister struct.A#2#11#11: 2 fields
171
171
// CHECK-NEXT: {{.*}} struct A
172
- // CHECK-NEXT: {{.*}} count = 2049, ratio = 2048
173
- // CHECK-NEXT: {{.*}} # 0: count = 2048, type = i32
174
- // CHECK-NEXT: {{.*}} # 1: count = 1, type = i32
172
+ // CHECK-NEXT: {{.*}} size = 8, count = 2049, ratio = 2048
173
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 2048, type = i32
174
+ // CHECK-NEXT: {{.*}} # 1: offset = 4, count = 1, type = i32
175
175
// CHECK-NEXT: Unregister struct.B#2#3#2: 2 fields
176
176
// CHECK-NEXT: {{.*}} struct B
177
- // CHECK-NEXT: {{.*}} count = 2097153, ratio = 2097152
178
- // CHECK-NEXT: {{.*}} # 0: count = 1, type = float
179
- // CHECK-NEXT: {{.*}} # 1: count = 2097152, type = double
177
+ // CHECK-NEXT: {{.*}} size = 16, count = 2097153, ratio = 2097152
178
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 1, type = float
179
+ // CHECK-NEXT: {{.*}} # 1: offset = 8, count = 2097152, type = double
180
180
// CHECK-NEXT: Unregister union.U#1#3: 1 fields
181
181
// CHECK-NEXT: Duplicated struct.S#2#11#11: 2 fields
182
182
// CHECK-NEXT: Unregister struct.D#2#11#11: 2 fields
183
183
// CHECK-NEXT: {{.*}} struct D
184
- // CHECK-NEXT: {{.*}} count = 1, ratio = 1
185
- // CHECK-NEXT: {{.*}} # 0: count = 1, type = i32
186
- // CHECK-NEXT: {{.*}} # 1: count = 0, type = i32
184
+ // CHECK-NEXT: {{.*}} size = 8, count = 1, ratio = 1
185
+ // CHECK-NEXT: {{.*}} # 0: offset = 0, count = 1, type = i32
186
+ // CHECK-NEXT: {{.*}} # 1: offset = 4, count = 0, type = i32
187
187
// CHECK-NEXT: {{.*}}EfficiencySanitizer: total struct field access count = 2099214
188
188
}
189
189
#endif // MAIN
0 commit comments