Commit a7fa264
committed
Auto merge of rust-lang#74821 - oli-obk:const_eval_read_uninit_fast_path, r=wesleywiser
Check whether locals are too large instead of whether accesses into them are too large
Essentially this stops const prop from attempting to optimize
```rust
let mut x = [0_u8; 5000];
x[42] = 3;
```
I don't expect this to be a perf improvement without rust-lang#73656 (which is also where the lack of this PR will be a perf regression).
r? @wesleywiser1 file changed
+1
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 1 | | |
22 | 2 | | |
23 | 3 | | |
| |||
75 | 55 | | |
76 | 56 | | |
77 | 57 | | |
78 | | - | |
| 58 | + | |
79 | 59 | | |
0 commit comments