[PATCH] D22608: [Profile] Use a flag to enable PGO rather than the profraw filename.

David Li via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 22 21:36:38 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL276517: [Profile] Use a flag to enable PGO rather than the profraw filename (authored by davidxl).

Changed prior to commit:
  https://reviews.llvm.org/D22608?vs=64812&id=65216#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D22608

Files:
  cfe/trunk/lib/CodeGen/BackendUtil.cpp

Index: cfe/trunk/lib/CodeGen/BackendUtil.cpp
===================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp
@@ -453,6 +453,7 @@
     MPM.add(createInstrProfilingLegacyPass(Options));
   }
   if (CodeGenOpts.hasProfileIRInstr()) {
+    PMBuilder.EnablePGOInstrGen = true;
     if (!CodeGenOpts.InstrProfileOutput.empty())
       PMBuilder.PGOInstrGen = CodeGenOpts.InstrProfileOutput;
     else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22608.65216.patch
Type: text/x-patch
Size: 483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160723/b909949f/attachment.bin>


More information about the cfe-commits mailing list