https://github.com/walter-erquinigo commented: This LGTM, but before merging, could you share more about the differences between the these cases and the actual logic between this patch and the previous attempt? https://github.com/llvm/llvm-project/pull/125347