161f2f256Sjoerg // RUN: %clang_profgen -o %t -O3 %s 261f2f256Sjoerg // RUN: %run %t %t.profraw 361f2f256Sjoerg // RUN: llvm-profdata merge -o %t.profdata %t.profraw 461f2f256Sjoerg // RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s 561f2f256Sjoerg 661f2f256Sjoerg void __llvm_profile_set_filename(const char *); main(int argc,const char * argv[])761f2f256Sjoergint main(int argc, const char *argv[]) { 8*ef84fd3bSjoerg // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[PD1:[0-9]+]] 961f2f256Sjoerg if (argc < 2) 1061f2f256Sjoerg return 1; 1161f2f256Sjoerg __llvm_profile_set_filename(argv[1]); 1261f2f256Sjoerg return 0; 1361f2f256Sjoerg } 14*ef84fd3bSjoerg // CHECK: ![[PD1]] = !{!"branch_weights", i32 1, i32 2} 15