Method AddGlobalOptimizerPass
AddGlobalOptimizerPass<T>(T)
Adds a Global Variable Optimizer pass
Declaration
public static T AddGlobalOptimizerPass<T>([ValidatedNotNull] this T passManager)
where T : PassManager
Parameters
public static T AddGlobalOptimizerPass<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 pass transforms simple global variables that never have their address taken. If obviously true, it marks read/write globals as constant, deletes variables only stored to, etc.