partouf wrote: > Perhaps this can be lit-tested? Checking that some debug output goes to stdout instead of stderr when the flag is enabled? Thanks for the review, i will have to look into how to add a lit test https://github.com/llvm/llvm-project/pull/91533