DavidSpickett wrote: Thanks for reviewing. I got some way into making it kind of data driven but then this corner case popped up and broke the whole thing. Maybe I can find an incremental way to do it instead. https://github.com/llvm/llvm-project/pull/165413