Skip to content

Conversation

@abadams
Copy link
Member

@abadams abadams commented Feb 8, 2022

widening_mul handles mixed-signedness args, but mul_shift_right doesn't.
We shouldn't map a mixed-signedness widening_mul to a mul_shift_right.

widening_mul handles mixed-signedness args, but mul_shift_right doesn't.
We shouldn't map a mixed-signedness widening_mul to a mul_shift_right.
@abadams abadams added bug backport me This change should be backported to release versions labels Feb 8, 2022
@abadams abadams requested a review from shoaibkamil February 8, 2022 19:44
auto is_x_same_int = op->type.is_int() && is_int(x, bits);
auto is_x_same_uint = op->type.is_uint() && is_uint(x, bits);
auto is_x_same_int_or_uint = is_x_same_int || is_x_same_uint;
auto x_y_same_sign = (is_int(x) && is_int(y)) || (is_uint(x) && is_uint(y));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a comment here would help-- it's not necessarily clear at first glance what is_int() means compared to Type::is_int()

@abadams
Copy link
Member Author

abadams commented Feb 10, 2022

Failure unrelated.

@abadams abadams merged commit 340f8f2 into master Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport me This change should be backported to release versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants