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] Switch back to use llvm.load for shared memory load #4776

Merged
merged 2 commits into from
Sep 21, 2024

Conversation

ThomasRaoux
Copy link
Collaborator

@ThomasRaoux ThomasRaoux commented Sep 21, 2024

When we don't have predicates we can use llvm.load. Using inline asm for i8 types can cause inefficient code generation in llvm due to the interaction with DAG legalizer.

When we don't have predicates we can use llvm.load. Using
inline asm for i8 types can cause inneficient code generation in llvm
due to the interaction with DAG legalizer.
@@ -290,6 +290,13 @@ static std::string getConstraintForBitwidth(unsigned bitwidth) {
}
}

static bool isTruePred(Value pred) {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about isConstantTruePred?

@ThomasRaoux ThomasRaoux merged commit 576426b into triton-lang:main Sep 21, 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