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

Chris Jung Chris.Jung at jdsu.com
Tue Jan 13 10:09:09 PST 2015


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. It takes about 13 minutes to compile if "-fobjc-arc" option is given with -O1. The time-report indicates that Dead Store Elimination optimization is taking the majority of the time. Is it worth logging a bug or is that working as intended?

Chris Jung

Embedded Software Engineer
Network and Service Enablement
JDSU
(317) 614-8089
www.jdsu.com<blocked::http://www.jdsu.com/>


[cid:image001.jpg at 01CCAF6C.740B7B20]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150113/9ac1e0d5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5171 bytes
Desc: image001.jpg
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150113/9ac1e0d5/attachment.jpg>


More information about the cfe-dev mailing list