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

Add patch to fix volatile access bug #595

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

ostannard
Copy link
Collaborator

@ostannard ostannard commented Dec 11, 2024

We have a customer affected by this bug, which was fixed after LLVM 19, and we'd like to do a release of LLVM-ET 19 with the fix.

LLVM PR: llvm/llvm-project#111679

Original commit message:

[DAGISel] Keep flags when converting FP load/store to integer (#111679)

This DAG combine replaces a floating-point load/store pair which has no other uses with an integer one, but did not copy the memory operand flags to the new instructions, resulting in it dropping the volatile flag. This optimisation is still valid if one or both of the instructions is volatile, so we can copy over the whole MachineMemOperand to generate volatile integer loads and stores where needed.

@ostannard ostannard requested a review from voltur01 December 11, 2024 09:31
Copy link
Collaborator

@statham-arm statham-arm left a comment

Choose a reason for hiding this comment

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

I know you're in a hurry, but could you please at least put something in the commit message that allows people to find out what the patch is about without having to go and read the message in the subsidiary patch? "#111679" by itself means someone has to manually make up a URL to go and look that up in the LLVM project (and has to work out from context that it is the LLVM project, because the PR number is too big to be picolibc).

A full URL to the PR would be useful. And maybe a one-sentence summary of what the fix is about.

From: =?UTF-8?q?Dominik=20W=C3=B3jt?= <[email protected]>
Date: Mon, 16 Oct 2023 11:35:48 +0200
Subject: [libc++] tests with picolibc: xfail two remaining tests
Subject: [PATCH 1/9] [libc++] tests with picolibc: xfail two remaining tests
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should remaster the patch series using format-patch -k, to avoid getting these [PATCH 1/9] prefixes. Goes with the git am -k we advise for reapplying them.

(If you didn't do either, then git am without -k would also discard square-bracketed prefixes you actually wanted to keep, which there are lots of in LLVM.)

We have a customer affected by this bug, which was fixed after LLVM 19,
and we'd like to do a release of LLVM-ET 19 with the fix.

LLVM PR: llvm/llvm-project#111679

Original commit message:

[DAGISel] Keep flags when converting FP load/store to integer (#111679)

This DAG combine replaces a floating-point load/store pair which has no
other uses with an integer one, but did not copy the memory operand
flags to the new instructions, resulting in it dropping the volatile
flag. This optimisation is still valid if one or both of the
instructions is volatile, so we can copy over the whole
MachineMemOperand to generate volatile integer loads and stores where
needed.
@ostannard ostannard changed the title Add patch to fix #111679 Add patch to fix volatile access bug Dec 11, 2024
@ostannard ostannard merged commit 18a001c into ARM-software:llvm-19 Dec 11, 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