[cfe-dev] Clang Slow to Optimize Dead Store Elimination

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jan 14 00:13:24 PST 2015


On Tue, Jan 13, 2015 at 06:09:09PM +0000, Chris Jung wrote:
> I have an Objective-C file that’s about 6000 lines long, which is
> nearly all a NSArray of 550 items, each of which is a NSDictionary with
> NSString/NSString and NSString/NSNumber key value pairs in literal
> syntax. This code takes about 0.4s to compile if optimizations are
> turned off. It takes about 8 minutes to compile if -O1 is turned on.

Yes, that's a bug. Note that -O1 doesn't really exist, it is the same as
-O2.

Joerg



More information about the cfe-dev mailing list