-
Notifications
You must be signed in to change notification settings - Fork 53
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
Simplify logic on static designs #1775
Conversation
// If they explicitly say "None" or "none", hten we set it to None. | ||
// Makes things a bit confusing. | ||
let cycle_limit = if cycle_limit_str.is_none() { | ||
Some(33554432) |
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.
How is this number chosen?
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.
Ah my bad should've explained that.
I basically looked at what worked well for the LUT numbers for the polybench stuff I've been working on. 33554432=2^25 ended up working well as an upper bound.
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.
I think we need to be a little more principled about this perhaps. What happens for higher numbers? We want some argument for why a 25-bit counter being the maximum is a good default choice.
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.
Ok finally fixed this to default to none (i.e., no limit). We can always set cycle-limit
though manually if we want.
Forgot to merge so doing it now. |
* command line cycle limit parse * clippy * better static guard simplification * rewrite test * small change * small change * rewrite test * default to none
Namely: