2016-08-02 04:28:26 +08:00
|
|
|
#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 {{.*}}
|
2016-08-02 05:06:54 +08:00
|
|
|
// CHECK: br {{.*}}label %[[BB1:.*]], label{{.*}}!prof ![[PD1:[0-9]+]]
|
2020-10-31 15:15:46 +08:00
|
|
|
// CHECK: {{.*}}[[BB1]]:
|
|
|
|
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}
|