[PGO] Enable InstrProf lowering for Clang PGO instrumentation in the new pass manager
authorRong Xu <xur@google.com>
Thu, 25 Apr 2019 17:52:43 +0000 (17:52 +0000)
committerRong Xu <xur@google.com>
Thu, 25 Apr 2019 17:52:43 +0000 (17:52 +0000)
commit4059e143dc715267c17bb1a8d4d8a82449cabe85
treeb9a77b5c88318e61bf483aa4859a2c3112f54fb9
parente3559eee63e484c68e00329b1f7a072ec30c4072
[PGO] Enable InstrProf lowering for Clang PGO instrumentation in the new pass manager
Currently InstrProf lowering is not enabled for Clang PGO instrumentation in
the new pass manager. The following command
"-fprofile-instr-generate -fexperimental-new-pass-manager ..." is broken.

This CL enables InstrProf lowering pass for Clang PGO instrumentation in the
new pass manager.

Differential Revision: https://reviews.llvm.org/D61138

llvm-svn: 359215
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/pgo-instrumentation.c
clang/test/Profile/c-general.c