Skip to content

[SYCL-MLIR] Use SmallString<0> to store arguments in ArgumentList #7274

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

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

victor-eds
Copy link
Contributor

std::string performs short string optimizations, so that moving an std::string might invalidate iterators to it. On the other hand, llvm::SmallString<0> is always heap-allocated, so moving does not involve invalidation.

Signed-off-by: Victor Perez [email protected]

std::string performs short string optimizations, so that moving an
std::string might invalidate iterators to it. On the other hand,
llvm::SmallString<0> is always heap-allocated, so moving does not
involve invalidation.

Signed-off-by: Victor Perez <[email protected]>
@victor-eds
Copy link
Contributor Author

These changes are also in the pipeline upstream.

@victor-eds victor-eds self-assigned this Nov 3, 2022
@victor-eds victor-eds added the sycl-mlir Pull requests or issues for sycl-mlir branch label Nov 3, 2022
Copy link
Contributor

@sommerlukas sommerlukas left a comment

Choose a reason for hiding this comment

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

LGTM.

@victor-eds victor-eds merged commit d2d254e into intel:sycl-mlir Nov 4, 2022
@victor-eds victor-eds deleted the smallstring-arglist branch November 4, 2022 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sycl-mlir Pull requests or issues for sycl-mlir branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants