Resize the alloca if needed to a common size, as long as the dest was still fully initialized by the copy. Extracted from PR optimization improvement series at https://github.com/llvm/llvm-project/pull/150792 (included all tests additions from there as well)