-
Notifications
You must be signed in to change notification settings - Fork 1
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
veri: disallow duplicate specs #87
Conversation
@@ -4567,35 +4567,6 @@ | |||
(if (ty_int_ref_scalar_64 ty)) | |||
(flags_and_cc (cmp (operand_size ty) rn rm) cond)) | |||
|
|||
(spec (lower_icmp_const c x y in_ty) |
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.
@avanhatt Which of the specs should be kept?
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.
On first glance, they look equivalent, but the one with the specific enum names (the one deleted here) is a little cleaner to read IMO. Let's keep this one instead.
@@ -4567,35 +4567,6 @@ | |||
(if (ty_int_ref_scalar_64 ty)) | |||
(flags_and_cc (cmp (operand_size ty) rn rm) cond)) | |||
|
|||
(spec (lower_icmp_const c x y in_ty) |
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.
On first glance, they look equivalent, but the one with the specific enum names (the one deleted here) is a little cleaner to read IMO. Let's keep this one instead.
4ec32ef
to
514bf33
Compare
514bf33
to
287d3f7
Compare
Now we have the `(with ...)` scope there is no need to use unique `v<i>_<j>` prefixes for temporary variables. This PR switches to use `t<i>` names. Aside from looking nicer it also removes a piece of config we need to track. Updates avanhatt#62
This PR errors when duplicate specs are provided.
We currently have two for
lower_icmp_const
:wasmtime/cranelift/codegen/src/isa/aarch64/inst.isle
Line 4495 in 6578776
wasmtime/cranelift/codegen/src/isa/aarch64/inst.isle
Line 4565 in 6578776