Skip to content

Navigation Menu

Sign in
Sign up

Fix AffineApplyNormalizer assert Error - #422

Open
sBobHuang wants to merge 1 commit into
llvm:main from
sBobHuang:fix-AffineApplyNormalizer-DivUIOp-bug
Open

Fix AffineApplyNormalizer assert Error #422
sBobHuang wants to merge 1 commit into
llvm:main from
sBobHuang:fix-AffineApplyNormalizer-DivUIOp-bug

Conversation

@sBobHuang

@sBobHuang sBobHuang commented Jul 18, 2024

Copy link
Copy Markdown

View details of issue 421 .

(!(fix(t.getDefiningOp()->getOperand(0), false) &&
fix(t.getDefiningOp()->getOperand(1), false)))) ||
(t.getDefiningOp<DivSIOp>() &&
((t.getDefiningOp<DivUIOp>() || t.getDefiningOp<DivSIOp>()) &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If doing a divui I wonder if we should also check that the divisor is positive. The AffineExpr constraint assumes signed division iirc, which is why we originally didn't include.

Of course crashing is far worse, so we don't want that to occur.

Copy link
Copy Markdown
Author

Thank you very much for the feedback. I did not consider the sign issue with AffineExpr before. I will try another fix. Thanks again.

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

Reviewers

@wsmoses wsmoses wsmoses left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /