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

[flang][fir] always use memcpy for fir.box #1

Closed
wants to merge 5 commits into from

Conversation

ashermancinelli
Copy link
Owner

@ashermancinelli ashermancinelli commented Oct 24, 2024

@jeanPerier explained the importance of converting box loads and stores into memcpys instead of aggregate loads and stores, and I'll do my best to explain it here.

LLVM is not as effective at optimizing aggregate loads and stores as it
is optimizing memcpy calls, so we always generate the latter for load
and stores between fir.box objects.
@ashermancinelli ashermancinelli changed the title [Fir]Fir box always memcpy [Fir] always use memcpy for fir.box Oct 25, 2024
Copy link

@jeanPerier jeanPerier left a comment

Choose a reason for hiding this comment

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

LGTM, thanks, you can move your PR to LLVM (use [flang][fir] as a PR title prefix there)

@ashermancinelli ashermancinelli changed the title [Fir] always use memcpy for fir.box [flang][fir] always use memcpy for fir.box Oct 28, 2024
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