paperchalice wrote: There is still something like: https://github.com/llvm/llvm-project/blob/0ee5924d9bc01c5625a41833dd9d88b89c98d986/llvm/include/llvm/IR/PassManager.h#L642-L644 which would be an issue in future... https://github.com/llvm/llvm-project/pull/116046