Method AddIPConstantPropagationPass
AddIPConstantPropagationPass<T>(T)
Adds an Inter-procedural constant propagation pass
Declaration
public static T AddIPConstantPropagationPass<T>([ValidatedNotNull] this T passManager)
where T : PassManager
Parameters
public static T AddIPConstantPropagationPass<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 implements an extremely simple inter-procedural constant propagation pass. It could certainly be improved in many different ways, like using a worklist. This pass makes arguments dead, but does not remove them. The existing dead argument elimination pass should be run after this to clean up the mess.