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