-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: remove unused parts of native compiler #1205
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Array::Dyn(ptr, len) => { | ||
if self.flags.debug { | ||
let valid = self.lt(index, len.clone()); | ||
self.assert_var_eq(valid, C::N::ONE); |
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.
If we want to keep debug
, a useful check here that is not lt
is that index != len
(since most index-out-of-bounds happen at len
). I had used this to find some bugs at some point.
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.
Hmm, unfortunately I also removed assert_ne
in this PR since it was only used once in the entire codebase (to check non-zero). I'll come back to revisit this.
7e00bd1
to
1cae05e
Compare
975f6a2
to
1618343
Compare
Commit: 1618343 |
* chore: remove unused Loop opcode * chore: remove unused exp_bits<V> function * chore: remove unused HintBitsU * chore: remove unused functions * chore: remove unused * feat: remove assert_ne from Var * fix: lint * feat: remove LessThanV, LessThanVI * chore: add comments * fix: spelling of committed * chore: remove unused get_ref * chore: remove unused get_ref * chore: remove unused ptr_at * fix: cache address * feat: remove Ref * feat: remove assert_len * fix: lint
Removes:
DslIr::Loop
exp_bits<V>
and other assortedexp_bits
functionsHintBitsU
assert_ne
LessThanV
,LessThanVI
get_ptr, get_ref, ptr_at
Ref
Array<C, V>.assert_len()
Closes INT-2994, INT-3014