https://github.com/mstorsjo commented: The change looks good to me, but the testcases are a bit hard to follow. Some comments in the test about what they try to test would be good. https://github.com/llvm/llvm-project/pull/219979