https://github.com/MaheshRavishankar requested changes to this pull request. Maybe worth adding a check that the folding does not happen and leaving a comment as to why such a folding shouldnt happen. https://github.com/llvm/llvm-project/pull/88043