-
Notifications
You must be signed in to change notification settings - Fork 388
fix(mem2reg): Keep last stores used in MakeArray #8743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
76077f6
39865fa
7047fb2
a18835f
c604fd7
db225ed
1ae27d8
0ae34e6
892ae97
153c19d
5002cae
c81a04a
bf2153b
eb851ee
d3c008f
3bfa172
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [package] | ||
| name = "regression_8739" | ||
| type = "bin" | ||
| authors = [""] | ||
|
|
||
| [dependencies] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| fn main() { | ||
| // Safety: testing context | ||
| unsafe { | ||
| func_2() | ||
| } | ||
| } | ||
| unconstrained fn func_2() { | ||
| let mut a: [&mut bool; 1] = [&mut true]; | ||
| let mut idx_b: u32 = 0; | ||
| while *a[0] { | ||
| if idx_b == 0 { | ||
| break; | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [package] | ||
| name = "regression_8755" | ||
| type = "bin" | ||
| authors = [""] | ||
|
|
||
| [dependencies] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| unconstrained fn main() -> pub Field { | ||
| func_2([(0, &mut -292434322542114415011969994633470574393)]) | ||
| } | ||
| unconstrained fn func_2(mut b: [(u32, &mut Field); 1]) -> Field { | ||
| let mut idx_e: u32 = 0; | ||
| loop { | ||
| if idx_e == 1 { | ||
| break; | ||
| } else { | ||
| idx_e = idx_e + 1; | ||
| } | ||
| } | ||
| (157653526363045079447323020681982670581 / *b[0].1) | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [package] | ||
| name = "regression_8761" | ||
| type = "bin" | ||
| authors = [""] | ||
|
|
||
| [dependencies] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| fn main() -> pub Field { | ||
| let mut d: [&mut bool; 1] = [(&mut false)]; | ||
|
|
||
| for _ in 0..1 {} // Without this it compiles | ||
|
|
||
| if *d[0] { | ||
| 0 | ||
| } else { | ||
| 1 | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.