[clang][NewPM] Move EntryExitInstrumenterPass to the start of the pipeline
authorLeonard Chan <leonardchan@google.com>
Thu, 20 Jun 2019 19:35:25 +0000 (19:35 +0000)
committerLeonard Chan <leonardchan@google.com>
Thu, 20 Jun 2019 19:35:25 +0000 (19:35 +0000)
commitb206513e459b9d441af8467efab504d691dbad1b
tree7cf46e781d934716941adf39ca3bee98d909c746
parentf2f7d72f0052b169433790d79e06b5160325c538
[clang][NewPM] Move EntryExitInstrumenterPass to the start of the pipeline

This fixes CodeGen/x86_64-instrument-functions.c when running under the new
pass manager. The pass should go before any other pass to prevent
`__cyg_profile_func_enter/exit()` from not being emitted by inlined functions.

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

llvm-svn: 363969
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/x86_64-instrument-functions.c