-
Notifications
You must be signed in to change notification settings - Fork 530
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
Added support for div-rem const folding. #6433
Conversation
e91ced8
to
e37c27a
Compare
cad9fe1
to
73388ce
Compare
e37c27a
to
775b76c
Compare
73388ce
to
4f4d77a
Compare
775b76c
to
9bc1305
Compare
4f4d77a
to
5a7f417
Compare
5a7f417
to
a7f6267
Compare
9bc1305
to
5325582
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 4 of 4 files at r1.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-lowering/src/optimizations/const_folding.rs
line 229 at r1 (raw file):
&mut self, stmt: &mut StatementCall, ) -> Option<(StatementConst, Option<StatementConst>)> {
Isn't a potentially empty vec of additional consts more expressive in this case?
Suggestion:
Vec<StatementConst>
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: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
crates/cairo-lang-lowering/src/optimizations/const_folding.rs
line 229 at r1 (raw file):
Previously, gilbens-starkware (Gil Ben-Shachar) wrote…
Isn't a potentially empty vec of additional consts more expressive in this case?
maybe just adding the additionals
vec as a parameter.
returning a vec entitled more.
5325582
to
aad1e74
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: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-lowering/src/optimizations/const_folding.rs
line 229 at r1 (raw file):
Previously, orizi wrote…
maybe just adding the
additionals
vec as a parameter.
returning a vec entitled more.
I'm fine with any of these
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: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-lowering/src/optimizations/const_folding.rs
line 229 at r1 (raw file):
Previously, gilbens-starkware (Gil Ben-Shachar) wrote…
I'm fine with any of these
But yes, a vec parameter seems good, as the output simply extends a vec anyway
commit-id:b582d31f
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: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
crates/cairo-lang-lowering/src/optimizations/const_folding.rs
line 229 at r1 (raw file):
Previously, gilbens-starkware (Gil Ben-Shachar) wrote…
But yes, a vec parameter seems good, as the output simply extends a vec anyway
it is somewhat of a discrepancy with the other block-end
handler.
(and there we directly add to the block statements - which is somewhat better than prepending)
but will do anyway.
aad1e74
to
e4398cb
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 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @orizi)
Stack:
*_eq
with 0 into*_iz_zero
. #6454*_eq
const folding. #6435This change is