[all-commits] [llvm/llvm-project] 5bdf22: [InstrProfiling] Fix emitting runtime hook once

gulfemsavrun via All-commits all-commits at lists.llvm.org
Wed Sep 28 18:22:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bdf22e743dbabdddd106f289a0f2d2f04c09b32
      https://github.com/llvm/llvm-project/commit/5bdf22e743dbabdddd106f289a0f2d2f04c09b32
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list