Page MenuHomePhabricator

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

Authored by leonardchan on Jun 19 2019, 3:36 PM.



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.

Diff Detail

Event Timeline

chandlerc accepted this revision.Jun 19 2019, 5:57 PM

LGTM, nice!

This revision is now accepted and ready to land.Jun 19 2019, 5:57 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2019, 12:32 PM