[PATCH] D73597: [LTO] Add optimization remarks for removed functions
Gábor Horváth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 17:29:15 PST 2020
xazax.hun created this revision.
xazax.hun added reviewers: tejohnson, pcc.
xazax.hun added a project: LLVM.
Herald added subscribers: Charusso, gamesh411, Szelethus, dang, dexonsmith, steven_wu, dkrupp, rnkovacs, hiraditya, inglorion, mehdi_amini.
Some functions are not getting added to the combined module that will be optimized later. Knowing which functions were removed could be useful for debugging or for detecting dead code. While getting the list of removed functions is not hard, optimizations remarks were not set up until just before opt was run. I moved this setup process a bit earlier for regular LTO so I can emit remarks. See http://lists.llvm.org/pipermail/llvm-dev/2020-January/138660.html for the discussion.
Note that, I did not change ThinLTO, as those modules will only be available later on.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73597
Files:
llvm/include/llvm/LTO/LTOBackend.h
llvm/lib/IR/DiagnosticInfo.cpp
llvm/lib/LTO/LTO.cpp
llvm/lib/LTO/LTOBackend.cpp
llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73597.241031.patch
Type: text/x-patch
Size: 8566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200129/86bbe076/attachment.bin>
More information about the llvm-commits
mailing list