This is an archive of the discontinued LLVM Phabricator instance.

[InstrProfiling] Fix emitting runtime hook once
ClosedPublic

Authored by gulfem on Sep 28 2022, 4:56 PM.

Details

Summary

https://reviews.llvm.org/D134254 introduced an issue on Fuchsia
target, which does not unconditionally emit runtime hook.
It used containsProfilingIntrinsics(M) after intrinsics are lowered.
So, this patch fixes the issue by capturing the result of that
function invocation before intrinsics are lowered.

Diff Detail

Event Timeline

gulfem created this revision.Sep 28 2022, 4:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2022, 4:56 PM
gulfem requested review of this revision.Sep 28 2022, 4:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2022, 4:56 PM
phosek accepted this revision.Sep 28 2022, 5:10 PM

LGTM

This revision is now accepted and ready to land.Sep 28 2022, 5:10 PM
This revision was automatically updated to reflect the committed changes.