labrinea wrote: FYI I am ready to rebase this on https://github.com/llvm/llvm-project/pull/122192. I have addressed @goldsteinn 's comment locally, made some adjustments and added a few more tests. https://github.com/llvm/llvm-project/pull/87939