Skip to content

Conversation

@dtcxzyw
Copy link
Member

@dtcxzyw dtcxzyw commented Jan 9, 2025

Addresses regressions introduced by #121892.
It also fixes a multi-use issue introduced by #76384 (tested in eq_mul_constants_with_tz_extra_use1).


const APInt *C;
if (match(BO0->getOperand(1), m_APInt(C)) && !C->isZero() &&
if (BO0->hasOneUse() && BO1->hasOneUse() &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be ||?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. We create two and instructions and one icmp here. See the test eq_mul_constants_with_tz_extra_use1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah fair enough, just this case is not relaxing the constraint, its tightening it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I already pointed out this in the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants