1*7c3d14c8STreehugger Robot // RUN: %clang_profgen -o %t -O3 %s 2*7c3d14c8STreehugger Robot // RUN: %run %t %t.profraw 3*7c3d14c8STreehugger Robot // RUN: llvm-profdata merge -o %t.profdata %t.profraw 4*7c3d14c8STreehugger Robot // RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s 5*7c3d14c8STreehugger Robot 6*7c3d14c8STreehugger Robot void __llvm_profile_override_default_filename(const char *); main(int argc,const char * argv[])7*7c3d14c8STreehugger Robotint main(int argc, const char *argv[]) { 8*7c3d14c8STreehugger Robot // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[PD1:[0-9]+]] 9*7c3d14c8STreehugger Robot if (argc < 2) 10*7c3d14c8STreehugger Robot return 1; 11*7c3d14c8STreehugger Robot __llvm_profile_override_default_filename(argv[1]); 12*7c3d14c8STreehugger Robot return 0; 13*7c3d14c8STreehugger Robot } 14*7c3d14c8STreehugger Robot // CHECK: ![[PD1]] = !{!"branch_weights", i32 1, i32 2} 15