Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ mod test {
inc_rc v4
inc_rc v5
v8 = call f1(v4) -> u32
v9 = allocate -> &mut u32
v9 = allocate -> &mut u1
store u1 0 at v9
v10 = load v9 -> u1
v11 = array_get v4, index u32 0 -> u32
Expand Down
4 changes: 2 additions & 2 deletions compiler/noirc_evaluator/src/ssa/opt/array_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ mod tests {
b0():
v2 = make_array [Field 0, Field 0, Field 0, Field 0, Field 0] : [Field; 5]
v3 = make_array [v2, v2] : [[Field; 5]; 2]
v4 = allocate -> &mut [Field; 5]
v4 = allocate -> &mut [[Field; 5]; 2]
store v3 at v4
v5 = allocate -> &mut [Field; 5]
v5 = allocate -> &mut [[Field; 5]; 2]
store v3 at v5
jmp b1(u32 0)
b1(v0: u32):
Expand Down
8 changes: 4 additions & 4 deletions compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ mod test {
v3 = cast v2 as u32
v4 = truncate v3 to 1 bits, max_bit_size: 32
v5 = cast v4 as u1
v6 = allocate -> &mut Field
v6 = allocate -> &mut u8
store u8 0 at v6
jmpif v5 then: b2, else: b1
b2():
Expand Down Expand Up @@ -1712,7 +1712,7 @@ mod test {
v3 = cast v2 as u32
v4 = truncate v3 to 1 bits, max_bit_size: 32
v5 = cast v4 as u1
v6 = allocate -> &mut Field
v6 = allocate -> &mut u8
store u8 0 at v6
enable_side_effects v5
v8 = cast v2 as Field
Expand Down Expand Up @@ -1841,7 +1841,7 @@ mod test {
let src = "
acir(inline) fn main f0 {
b0(v0: bool):
v1 = allocate -> &mut [Field; 1]
v1 = allocate -> &mut Field
store Field 0 at v1
jmpif v0 then: b1, else: b2
b1():
Expand All @@ -1860,7 +1860,7 @@ mod test {
assert_ssa_snapshot!(ssa, @r"
acir(inline) fn main f0 {
b0(v0: u1):
v1 = allocate -> &mut [Field; 1]
v1 = allocate -> &mut Field
enable_side_effects v0
v2 = not v0
v3 = cast v0 as Field
Expand Down
Loading
Loading