Files
clang-p2996/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
Kazu Hirata 51cdf1f662 [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.
2024-11-21 11:29:48 -08:00

45 KiB