https://github.com/Keenuts commented: LGTM, but yes the GlobalRegistry keeping references might be an issue. IIRC there was some work to make this an analysis or something like this no? @michalpaszkowski https://github.com/llvm/llvm-project/pull/164868