Generally, the strategy seems fine here. I share the concern over compile time regressions though. Have you been able to collect any numbers to see how bad this is? The test suite, spec, or anything else with a decent diversity of loops would seem to be suitable.... http://reviews.llvm.org/D4207