Skip to content

Commit

Permalink
Added LoopUnrolling to the O2 pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rs-mt committed Sep 20, 2020
1 parent 59044b8 commit 17660f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Src/ILGPU/IR/Transformations/Optimizer.cs
Expand Up @@ -182,15 +182,21 @@ public static class Optimizer
ContextFlags contextFlags)
{
var dce = new DeadCodeElimination();
var scf = new SimplifyControlFlow();

builder.AddBasicOptimizations(contextFlags);
builder.Add(dce);
builder.Add(new SSAConstruction());
builder.Add(new LowerStructures());
builder.Add(dce);

builder.Add(new LoopUnrolling());
builder.Add(dce);
builder.Add(scf);

builder.Add(new IfConversion(IfConversionFlags.Default));
builder.Add(dce);
builder.Add(new SimplifyControlFlow());
builder.Add(scf);
builder.Add(new InferAddressSpaces());
}

Expand Down

0 comments on commit 17660f5

Please sign in to comment.