-
Notifications
You must be signed in to change notification settings - Fork 640
flow_control: Integrate the new code for simple boolean ifs. #8086
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
Conversation
d85abdd to
2167b5b
Compare
e52fd15 to
fdcebc2
Compare
2167b5b to
66b9e67
Compare
ad6a371 to
f6296a6
Compare
66b9e67 to
50a9b00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-lowering/src/borrow_check/test_data/borrow_check line 853 at r1 (raw file):
(v12: test::A) <- struct_construct(v9{`a`}) End: Return(v12, v11)
are there cases where this would cause a regression?
or would following optimizations remove the issue?
(or sierra-gen end of function "push" would make this irrelevant?)
Code quote:
Goto(blk3, {v6 -> v9})
blk2:
Statements:
(v10: core::integer::u32) <- struct_destructure(v0{`if true { bar(@a.x); }`})
End:
Goto(blk3, {v10 -> v9})
blk3:
Statements:
(v11: ()) <- struct_construct()
(v12: test::A) <- struct_construct(v9{`a`})
End:
Return(v12, v11)
50a9b00 to
9216e99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed (commit messages unreviewed), 1 unresolved discussion (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-lowering/src/borrow_check/test_data/borrow_check line 853 at r1 (raw file):
Previously, orizi wrote…
are there cases where this would cause a regression?
or would following optimizations remove the issue?
(or sierra-gen end of function "push" would make this irrelevant?)
I think @ilyalesokhin-starkware said this is the preferred way. It's hard for me to say if it'll cause regression in some cases. I think the new way decreases the size of the remapping (better to remap the necessary members of a struct than the entire struct)
9216e99 to
f8f7057
Compare
23cb152 to
ceb7386
Compare
commit-id:827e842e
f8f7057 to
18d2b05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @liorgold2)
Stack: