This patch reverts 10c531cd5bf0166ce5bf42736506733b2285fdf8 (https://reviews.llvm.org/D128796)
It solves https://github.com/llvm/llvm-project/issues/57861.
@fhahn You mentioned in D128796, that the comment saying that this optimization must not be done is irrelevant. Is this comment related to this example?