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.
45 KiB
45 KiB