[PATCH] Use loop unrolling pragma metadata in the loop unroller (take 2)

Mark Heffernan meheff at google.com
Mon Jun 16 12:42:07 PDT 2014


I should also mention that I encountered some long compilation times which are superlinear with the unroll count when experimenting with the pragma loop limit.  With the current limit (32K) on a simple loop the compilation time is ~7s.  Doubling the limit results in a compilation time of ~50s.  It seems to be beneath llvm::UnrollLoop -> FoldBlockIntoPredecessor -> llvm::ScalarEvolution::forgetLoop.  This may suggest that we don't want to move much higher than 32K.

Mark

http://reviews.llvm.org/D4147






More information about the llvm-commits mailing list