Class DeadBlockElimination
A transform that removes all blocks not reachable from the entry point block.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Flame.Compiler.Transforms
Assembly: Flame.Compiler.dll
Syntax
public sealed class DeadBlockElimination : IntraproceduralOptimization
Fields
| Improve this Doc View SourceInstance
An instance of the dead block elimination transform.
Declaration
public static readonly DeadBlockElimination Instance
Field Value
Type | Description |
---|---|
DeadBlockElimination |
Methods
| Improve this Doc View SourceApply(FlowGraph)
Removes dead blocks from a particular graph.
Declaration
public override FlowGraph Apply(FlowGraph graph)
Parameters
Type | Name | Description |
---|---|---|
FlowGraph | graph | The graph to rewrite. |
Returns
Type | Description |
---|---|
FlowGraph | A rewritten flow graph. |