mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[LoopUnroll] Add a cl::opt to force peeling, for testing purposes.
Will be used to test the patch proposed in D37153. llvm-svn: 311915
This commit is contained in:
parent
e9d5200366
commit
f2e85cb73c
@ -80,6 +80,10 @@ static cl::opt<unsigned> UnrollFullMaxCount(
|
||||
cl::desc(
|
||||
"Set the max unroll count for full unrolling, for testing purposes"));
|
||||
|
||||
static cl::opt<unsigned> UnrollPeelCount(
|
||||
"unroll-peel-count", cl::Hidden,
|
||||
cl::desc("Set the unroll peeling count, for testing purposes"));
|
||||
|
||||
static cl::opt<bool>
|
||||
UnrollAllowPartial("unroll-allow-partial", cl::Hidden,
|
||||
cl::desc("Allows loops to be partially unrolled until "
|
||||
@ -183,6 +187,8 @@ static TargetTransformInfo::UnrollingPreferences gatherUnrollingPreferences(
|
||||
UP.MaxCount = UnrollMaxCount;
|
||||
if (UnrollFullMaxCount.getNumOccurrences() > 0)
|
||||
UP.FullUnrollMaxCount = UnrollFullMaxCount;
|
||||
if (UnrollPeelCount.getNumOccurrences() > 0)
|
||||
UP.PeelCount = UnrollPeelCount;
|
||||
if (UnrollAllowPartial.getNumOccurrences() > 0)
|
||||
UP.Partial = UnrollAllowPartial;
|
||||
if (UnrollAllowRemainder.getNumOccurrences() > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user