[PATCH] D38066: [cmake] Add an option to build llvm with IR PGO
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 18:11:45 PDT 2017
davidxl added inline comments.
================
Comment at: cmake/modules/HandleLLVMOptions.cmake:751
+mark_as_advanced(LLVM_ENABLE_IR_PGO)
+append_if(LLVM_ENABLE_IR_PGO "-fprofile-generate -Xclang -fprofile-instrument-path='${LLVM_PROFILE_FILE_PATTERN}'"
+ CMAKE_CXX_FLAGS
----------------
-fprofile-generate=<> is supported as well, why not using that?
https://reviews.llvm.org/D38066
More information about the llvm-commits
mailing list