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

[Backend] Fix arith.index_cast lowering to LLVM. #4704

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

chsigg
Copy link
Collaborator

@chsigg chsigg commented Sep 11, 2024

Fix crash when lowering arith.index_cast to llvm when the cast truncates or extends the i32 index.

createDestOps should not replaceOpWithNewOp but simply createOp because the call-site (matchAndRewrite) calls replaceOp later on.

Fix crash when lowering `arith.index_cast` to llvm when the cast truncates or extends the i32 index.

`createDestOps` should not `replaceOpWithNewOp` but simply `createOp` because the call-site (`matchAndRewrite`) calls `replaceOp` later on.
@chsigg chsigg merged commit 4bb928e into triton-lang:main Sep 12, 2024
7 checks passed
@chsigg chsigg deleted the fix_index_cast_op_lowering_to_llvm branch September 23, 2024 12:57
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