[cfe-commits] r150798 - in /cfe/trunk: lib/CodeGen/CGDeclCXX.cpp test/CodeGenCXX/init-invariant.cpp
richard at metafoo.co.uk
Fri Feb 17 12:18:01 PST 2012
On Fri, Feb 17, 2012 at 12:54 AM, Chris Lattner <clattner at apple.com> wrote:
> On Feb 16, 2012, at 11:31 PM, Richard Smith wrote:
> > Author: rsmith
> > Date: Fri Feb 17 01:31:37 2012
> > New Revision: 150798
> > URL: http://llvm.org/viewvc/llvm-project?rev=150798&view=rev
> > Log:
> > The clang half of r150794: after the construction of a global or static
> > variable ends, if the variable has a trivial destructor and no mutable
> > subobjects then emit an llvm.invariant.start call for it. globalopt
> knows to
> > make the variable const when evaluating this.
> Hi Richard,
> We should only emit metadata like this when optimizations are enabled, not
> at -O0.
OK, r150838. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits