[cfe-dev] clang/library collusion

Renato Golin via cfe-dev cfe-dev at lists.llvm.org
Fri May 27 08:13:44 PDT 2016


On 27 May 2016 at 15:16, Bernard Ogden <Bernard.Ogden at arm.com> wrote:
> Do you mean that there is somewhere else I could be usefully making a change?
>
> Or perhaps you mean that we should rely on LTO to just do this, rather than implementing it this way?

IIUC, you're trying to remove args handling code by understanding
somewhere that it's not used. Clang adds it because it's the standard
way to do it, and I agree with Richard, this seems the wrong place to
add this logic.

LTO can do better DCE because it *knows* about things that you won't
need, especially true in bare metal environments, and this looks like
it could be cleared at the very end of the compilation process. Since
DCE is a big part of LTO, I though it would be the most obvious place
to add such an optimisation, if LTO is not smart enough yet to do it
(might very well be).

cheers,
--renato



More information about the cfe-dev mailing list