projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9239245
)
[Profile] Use a flag to enable PGO rather than the profraw filename
author
Xinliang David Li
<davidxl@google.com>
Sat, 23 Jul 2016 04:28:59 +0000
(
04:28
+0000)
committer
Xinliang David Li
<davidxl@google.com>
Sat, 23 Jul 2016 04:28:59 +0000
(
04:28
+0000)
Patch by Jake VanAdrighem
Differential Revision: http://reviews.llvm.org/D22608
llvm-svn: 276517
clang/lib/CodeGen/BackendUtil.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/BackendUtil.cpp
b/clang/lib/CodeGen/BackendUtil.cpp
index
c8594a1
..
282468f
100644
(file)
--- a/
clang/lib/CodeGen/BackendUtil.cpp
+++ b/
clang/lib/CodeGen/BackendUtil.cpp
@@
-453,6
+453,7
@@
void EmitAssemblyHelper::CreatePasses(legacy::PassManager &MPM,
MPM.add(createInstrProfilingLegacyPass(Options));
}
if (CodeGenOpts.hasProfileIRInstr()) {
+ PMBuilder.EnablePGOInstrGen = true;
if (!CodeGenOpts.InstrProfileOutput.empty())
PMBuilder.PGOInstrGen = CodeGenOpts.InstrProfileOutput;
else