Skip to content
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

[Util] Erase state of modified ops #19187

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

IanWood1
Copy link
Contributor

@IanWood1 IanWood1 commented Nov 18, 2024

This was hard to debug and I haven't yet been able to track down which op was modified causing the issue nor which pattern was triggering this. I was encountering the following assert during Stream pipeline (but not global opt):

APInt.cpp:285: int llvm::APInt::compare(const APInt &) const: Assertion `BitWidth == RHS.BitWidth && "Bit widths must be same for comparison"' failed.

It might be worth reverting #19130 instead of this patch since I wasn't able to track this down fully.

2/2 fix for #19167.

@krzysz00
Copy link
Contributor

Is it possible this is related to #19195 in some way?

@IanWood1
Copy link
Contributor Author

This could be the case, I'll test it out

@IanWood1
Copy link
Contributor Author

IanWood1 commented Nov 18, 2024

This didn't seem to fix the problem that I was having unfortunately

@IanWood1 IanWood1 merged commit 1ab3b49 into iree-org:main Nov 18, 2024
36 checks passed
Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
Groverkss pushed a commit to Groverkss/iree that referenced this pull request Dec 1, 2024
This was hard to debug and I haven't yet been able to track down which
op was modified causing the issue nor which pattern was triggering this.
I was encountering the following assert during `Stream` pipeline (but
not global opt):

```shell
APInt.cpp:285: int llvm::APInt::compare(const APInt &) const: Assertion `BitWidth == RHS.BitWidth && "Bit widths must be same for comparison"' failed.
```

It might be worth reverting iree-org#19130
instead of this patch since I wasn't able to track this down fully.


2/2 fix for iree-org#19167.

Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
giacs-epic pushed a commit to giacs-epic/iree that referenced this pull request Dec 4, 2024
This was hard to debug and I haven't yet been able to track down which
op was modified causing the issue nor which pattern was triggering this.
I was encountering the following assert during `Stream` pipeline (but
not global opt):

```shell
APInt.cpp:285: int llvm::APInt::compare(const APInt &) const: Assertion `BitWidth == RHS.BitWidth && "Bit widths must be same for comparison"' failed.
```

It might be worth reverting iree-org#19130
instead of this patch since I wasn't able to track this down fully.

2/2 fix for iree-org#19167.

Signed-off-by: Ian Wood <ianwood2024@u.northwestern.edu>
Signed-off-by: Giacomo Serafini <179146510+giacs-epic@users.noreply.github.com>
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.

3 participants