diff --git a/mlir/docs/PassManagement.md b/mlir/docs/PassManagement.md --- a/mlir/docs/PassManagement.md +++ b/mlir/docs/PassManagement.md @@ -419,8 +419,8 @@ // Nest an op-agnostic pass manager. This will operate on any viable // operation, e.g. func.func, spv.func, spv.module, builtin.module, etc. OpPassManager &nestedAnyPM = nestedModulePM.nestAny(); -nestedFunctionPM.addPass(createCanonicalizePass()); -nestedFunctionPM.addPass(createCSEPass()); +nestedAnyPM.addPass(createCanonicalizePass()); +nestedAnyPM.addPass(createCSEPass()); // Run the pass manager on the top-level module. ModuleOp m = ...;