https://github.com/skatrak approved this pull request. Thank you, this LGTM. Perhaps leave some time for others to take a look, in case implementing this within another stage is preferred. https://github.com/llvm/llvm-project/pull/139572