goldsteinn wrote: > Can you please move the foldSelectValueEquivalence() changes into a separate PR (to land first)? Done, see: https://github.com/llvm/llvm-project/pull/88298 https://github.com/llvm/llvm-project/pull/87275