Make the LoopRotate pass's maximum header size configurable both programmatically

and via the command line, mirroring similar functionality in LoopUnroll.  In
situations where clients used custom unrolling thresholds, their intent could
previously be foiled by LoopRotate having a hardcoded threshold.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson
2014-05-26 08:58:51 +00:00
parent bcc96923e0
commit 866ed7f63f
2 changed files with 15 additions and 5 deletions

View File

@ -155,7 +155,7 @@ Pass *createLoopRerollPass();
//
// LoopRotate - This pass is a simple loop rotating pass.
//
Pass *createLoopRotatePass();
Pass *createLoopRotatePass(int MaxHeaderSize = -1);
//===----------------------------------------------------------------------===//
//