[PATCH] D15163: Attach maximum function count to Module when using PGO mode.

David Li via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 14 14:21:05 PST 2015


davidxl added inline comments.

================
Comment at: cfe/trunk/test/CodeGen/pgo-max-function-count.c:1
@@ +1,2 @@
+// RUN: %clang -fprofile-generate -o %t -O2 %s
+// RUN: env LLVM_PROFILE_FILE=%t.profraw  %t
----------------
Use -fprofile-instr-generate option. -fprofile-generate is for GCC compatibility. 

================
Comment at: cfe/trunk/test/CodeGen/pgo-max-function-count.c:4
@@ +3,3 @@
+// RUN: llvm-profdata merge -o %t.profdata %t.profraw
+// RUN: %clang -fprofile-use=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
+// Check
----------------
use -fprofile-instr-use=%t.profdata ..


Repository:
  rL LLVM

http://reviews.llvm.org/D15163





More information about the cfe-commits mailing list