Conversation
Collaborator
This was referenced Feb 18, 2024
Amanieu
reviewed
Feb 18, 2024
CAD97
reviewed
Feb 18, 2024
RalfJung
force-pushed
the
non-temporal-store
branch
2 times, most recently
from
February 19, 2024 07:31
684844e to
d236e1c
Compare
Member
Author
|
CI failures seem unrelated to this PR. |
Amanieu
force-pushed
the
non-temporal-store
branch
from
February 20, 2024 23:24
d236e1c to
bdd648b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is my proposed alternative to #1457. It builds on the model I sketched here.
Changing the docs alone is not sufficient IMO, we also should stop using LLVM's non-temporal hint as LLVM passes do not properly take into account the non-standard nature of non-temporal stores. Originally I thought these all have to become inline assembly, but now I noticed that some of these operations are using different LLVM intrinsics:
Do these intrinsics exist for the other operations as well, e.g. for movntps? I found
llvm.x86.avx.movnt.ps.256but ofc for the SSE intrinsic we'd want the 128bit version of that. If that exists, using those might be better than using inline assembly? Though of course if LLVM passes treat these intrinsics like regular stores, that would still be wrong.