[InstrProfiling] Fix emitting runtime hook once
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. Differential Revision: https://reviews.llvm.org/D134841
Loading
Please sign in to comment