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

[CIR][FlattenCFG] Fix rewrite API misuse #1163

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

smeenai
Copy link
Collaborator

@smeenai smeenai commented Nov 25, 2024

We need to perform all erasures via the rewrite API instead of directly
for the framework to work correctly. This was detected by a combination
of -DMLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS=ON [1] and ASAN.

[1] https://mlir.llvm.org/getting_started/Debugging/#detecting-invalid-api-usage

We need to perform all erasures via the rewrite API instead of directly
for the framework to work correctly. This was detected by a combination
of `-DMLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS=ON` [1] and ASAN.

[1] https://mlir.llvm.org/getting_started/Debugging/#detecting-invalid-api-usage
@bcardosolopes
Copy link
Member

Should we enable -DMLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS=ON in CI? Sounds like a net win!

@bcardosolopes bcardosolopes merged commit 9db508a into llvm:main Nov 25, 2024
7 checks passed
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