Avoid creating overlapping assignments in MatchBranchSimplification
MatchBranchSimplification can turn a match into an assignment, but doesn't make sure the LHS and RHS do not overlap. For example, the enum version of the mir-opt test in this PR is currently compiled with `-Zmir-opt-level=0 -Zmir-enable-passes=+MatchBranchSimplification` to
```
fn g(_1: Foo) -> Foo {
let mut _0: Foo;
let mut _2: Foo;
let mut _3: *const Foo;
let mut _4: u8;
bb0: {
_2 = copy _1;
_3 = &raw const _2;
_4 = discriminant((*_3));
_2 = no_retag copy (*_3); // Since _3 = &raw const 2 above, this overlaps!
_0 = copy _2;
return;
}
}
```
While this is technically a miscompile, I haven't found any way to turn this into something exciting, in part because the only thing that can be made to overlap here is a by-value enum discriminant which is always register-sized so backends lower this in a way that is okay with overlapping.