summaryrefslogtreecommitdiff
path: root/test/profile/Inputs/comdat_rename_2.cc
blob: 6ba92ce39ffddda91d67e0dc6265d0b857633496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "comdat_rename.h"
extern void test(FOO *);
FOO foo;
int main() {
  test(&foo);
  foo.caller(20);
  return 0;
}

// The copy of 'caller' defined in this module -- it has
// 'callee' call remaining.
//
// CHECK-LABEL: define {{.*}}caller{{.*}}
// CHECK: {{.*}} call {{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label %[[BB1:.*]], label{{.*}}!prof ![[PD1:[0-9]+]]
// CHECK: ; <label>:[[BB1]]: 
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}