https://github.com/IanWood1 commented: The logic looks good from what I understand but is a bit complicated so I may need to reread to make sure I fully grasp what is going on. https://github.com/llvm/llvm-project/pull/137963