Method AddGlobalDCEPass
AddGlobalDCEPass<T>(T)
Adds a Global Dead Code Elimination pass
Declaration
public static T AddGlobalDCEPass<T>([ValidatedNotNull] this T passManager)
where T : PassManager
Parameters
public static T AddGlobalDCEPass<T>([ValidatedNotNull] this T passManager)
where T : PassManager
T | passManager | Pass manager to add the pass to |
Returns
T |
|
Type Parameters
T | PassManager type |
Remarks
This transform is designed to eliminate unreachable internal globals from the program. It uses an aggressive algorithm, searching out globals that are known to be alive. After it finds all of the globals which are needed, it deletes whatever is left over. This allows it to delete recursive chunks of the program which are unreachable.