[cfe-dev] [llvm-dev] Rewriting calls to varargs functions

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Wed May 23 05:36:39 PDT 2018


On Tue, May 22, 2018 at 11:36:32AM -0500, Hal Finkel via llvm-dev wrote:
> Sure, but it seems to me unlikely that this will affect performance. Is
> it a code-size optimization (this actually isn't obvious to me because
> the string representation might be longer than the binary form of the
> constant plus the extra instructions)?

More importantly, there is a quite non-trivial chance that the format
string is duplicated elsewhere, so this can often be a pure loss.

Joerg



More information about the cfe-dev mailing list