C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Every variable is volatile, everything is laundered, no optimisation

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 28 Aug 2023 09:28:34 -0700
On Monday, 28 August 2023 05:16:13 PDT David Brown via Std-Proposals wrote:
> There are also issues with inlining -
> typically, a change to the optimisation flags disables inlining for a
> function (unless the calling function shares the same flags). This can
> be surprising, and contrary to the programmer's aims in fine-tuning
> optimisation flags in the first place.

And don't forget function cloning.

Even if you mark a function "noinline", it may still be cloned and constants
propagated into it.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-08-28 16:28:36