[all-commits] [llvm/llvm-project] 51cdf1: [memprof] Skip MemProfUsePass on the empty module ...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Nov 21 11:30:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51cdf1f6627ae369cbe15e50861806842e39a013
      https://github.com/llvm/llvm-project/commit/51cdf1f6627ae369cbe15e50861806842e39a013
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-11-21 (Thu, 21 Nov 2024)

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

  Log Message:
  -----------
  [memprof] Skip MemProfUsePass on the empty module (#117210)

This patch teaches the MemProfUsePass to return immediately on
the empty module.

Aside from saving time to deserialize the MemProf profile, this patch
ensures that we can obtain TLI like so:

TargetLibraryInfo &TLI =
FAM.getResult<TargetLibraryAnalysis>(*M.begin());

when we undrift the MemProf profile in near future.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list