about summary refs log tree commit diff
path: root/tests/mir-opt/gvn_repeat.repeat_local.GVN.diff
AgeCommit message (Collapse)AuthorLines
2025-05-19gvn: bail out unavoidable non-ssa locals in repeatdianqk-0/+18
We cannot transform `*elem` to `array[idx1]` in the following code, as `idx1` has already been modified. ```rust mir! { let array; let elem; { array = [*val; 5]; elem = &array[idx1]; idx1 = idx2; RET = *elem; Return() } } ```