Skip to content

Commit

Permalink
Updated optimizer configuration to apply a final DCE run in release m…
Browse files Browse the repository at this point in the history
…ode.
  • Loading branch information
m4rs-mt committed May 15, 2020
1 parent 921b7c8 commit 37afd05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/ILGPU/IR/Transformations/Optimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ public static void AddBackendOptimizations(

// Lower structures
if (level > OptimizationLevel.O1)
{
builder.Add(new LowerStructures());

// Apply final DCE phase in release mode
if (level > OptimizationLevel.O0)
builder.Add(new DeadCodeElimination());
}
}

/// <summary>
Expand Down

0 comments on commit 37afd05

Please sign in to comment.