jsjodin wrote: Could a new test be added that would give incorrect result with the old implementation but correct with this patch? It would be nice to lock in the new behavior. https://github.com/llvm/llvm-project/pull/79308