[all-commits] [llvm/llvm-project] cdabce: [MLIR] Remove extra 'any' from CompositePass inner...

Vadim Curcă via All-commits all-commits at lists.llvm.org
Wed May 14 06:00:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cdabce0c1b84239e335406c6a8f0429577b7186a
      https://github.com/llvm/llvm-project/commit/cdabce0c1b84239e335406c6a8f0429577b7186a
  Author: Vadim Curcă <80581374+VadimCurca at users.noreply.github.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M mlir/lib/Transforms/CompositePass.cpp
    M mlir/test/Transforms/composite-pass.mlir

  Log Message:
  -----------
  [MLIR] Remove extra 'any' from CompositePass inner pipeline string (#139877)

When a `CompositePass` is created programmatically, it incorrectly
prepends an extra `any` to the inner pipeline string. For example:
```c++
passManager.nestAny().addPass(createCompositeFixedPointPass(
  "Pass1AndPass2",
  [](OpPassManager &nestedPassManger) {
    nestedPassManger.addPass(createPass1());
    nestedPassManger.addPass(createPass2());
  },
```
This would result in the following pipeline string:
```
any(composite-fixed-point-pass{max-iterations=3 name=Pass1AndPass2
pipeline=any(pass1,pass2)})
```

This commit fixes this issue, resulting in the pipeline string:
```
any(composite-fixed-point-pass{max-iterations=3 name=Pass1AndPass2
pipeline=pass1,pass2})
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list