The name of the method was confusing. It is bufferizesToMemoryWrite, but from the perspective of OpResults.
bufferizesToMemoryWrite(OpResult) now supports ops with regions that do not have aliasing OpOperands (such as scf.if). These ops no longer need to implement isMemoryWrite.
Depends On: D141683
Can we separate this change from this PR?
It seems it is unrelated.