steakhal wrote: I want to review this PR before anyone would approve and merge this, as I was the one who plotted a potential solution in the linked issue. I hope I can get to this on the weekend. https://github.com/llvm/llvm-project/pull/126752