slooow compiles

As part of routine testing, I run clang and llvm-gcc a lot of times. Something happened between r83681 and r84167 such that clang-cc and cc1 became many hundreds of times slower when asked to perform optimizations.

Is this a known issue? These are all release builds on Ubuntu Jaunty on x86. During these long runs, memory usage creeps up slowly at maybe 1 MB per minute.


John Regehr

My InlineCost refactoring has been noticed in this aspect; that may or may notbe the culprit here.

A quick thing you can do is to compile with -ftime-report and compare the top few passes between versions.


Unswitch loops is the culprit, I'm about to file a bug.