[cfe-dev] selective/fine grained optimizations control
Eli Friedman
eli.friedman at gmail.com
Wed Aug 28 11:50:03 PDT 2013
On Wed, Aug 28, 2013 at 11:08 AM, Halfdan Ingvarsson <halfdan at sidefx.com>wrote:
> On 13-08-28 12:45 PM, Eli Friedman wrote:
>
>
> clang intentionally doesn't expose fine-grained control over
> optimization passes.
>
> It's probably a better idea to figure out which file is getting
> incorrectly compiled, and change the optimization level for that
> file,instead of messing with the optimization levels for the whole
> project. Also, this sort of issue is almost always caused by code that has
> undefined behavior, not by a bug in the compiler.
>
>
> I beg to differ: http://llvm.org/pr14223
>
> We still have to compile the affected project with -O1 to ensure that the
> destructors properly fire.
>
>
I know the compiler has lots of bugs; I work on them every day. :) It's
still not the first explanation to look for.
-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130828/1c608af4/attachment.html>
More information about the cfe-dev
mailing list