search for: linkregularlto

Displaying 2 results from an estimated 2 matches for "linkregularlto".

2020 Jan 28
2
Where does LTO remove unused functions?
...Mon, Jan 27, 2020 at 6:05 PM Teresa Johnson <tejohnson at google.com> wrote: > By default even regular LTO now has module summaries (like the kind used > for ThinLTO). LTO will then run index based dead symbol analysis here: > http://llvm-cs.pcc.me.uk/lib/LTO/LTO.cpp#923. Then when linkRegularLTO is > called here: http://llvm-cs.pcc.me.uk/lib/LTO/LTO.cpp#935, it indicates > that the index should be consulted for liveness, and that routine skips > even adding the dead symbols to the Keep set. So they never make it into > the combined module. > > Teresa > > On Mon, Jan...
2020 Jan 28
3
Where does LTO remove unused functions?
Hi! LLVM newbie here, I was mainly working on the frontend so far. We had a small hackathon project idea to piggyback on LTO to detect dead code (unused functions). The basic idea is to compile the code for every target and dump the removed functions. Intersect the function symbol names for each target and those functions should be safe to remove from the source code (unless there were some