https://github.com/davemgreen commented: I was kind of expecting this to be automatic. No? If we select freeze to a copy/nop, can we not look through freeze in DAG patterns? (Otherwise this looks OK, thanks for the fix) https://github.com/llvm/llvm-project/pull/224213