HomePhabricator

[clang][NewPM] Move EntryExitInstrumenterPass to the start of the pipeline

Authored by leonardchan on Jun 20 2019, 12:35 PM.

Description

[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