scf::ForOp and scf::WhileOp must insert buffer copies not only for out-of-place bufferizations, but also to enforce additional invariants wrt. to buffer aliasing behavior. This is currently happening in the respective bufferize methods. With this change, the tensor copy insertion pass will also enforce these invariants by inserting copies. The bufferize methods can then be simplified and made independent of the AnalysisState data structure in a subsequent change.
Depends On D126821
in variants -> invariants