-
Notifications
You must be signed in to change notification settings - Fork 38
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
[SOL] Use ADD for subtracting stack pointer #70
[SOL] Use ADD for subtracting stack pointer #70
Conversation
The patch LGTM (see minor nits mentioned). Note, however, that the MacOS CI failed due to some Mac flakiness (unrelated to your patch). You will need to first rebase to get a minor patch I just committed to clean that up. |
e751171
to
714d146
Compare
714d146
to
ae72364
Compare
.addReg(SBF::R11) | ||
.addImm(NumBytes); | ||
.addImm(IsSubtract? -NumBytes : NumBytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder: please be mindful of the LLVM coding conventions[*]. You can run clang-format
to help identify/automate correct coding conventions. Upstream LLVM runs this automatically for submitted patches, but we do not yet do this in our local CI.
Also, when you run clang-format
on future patches, only commit the diffs that are within the lines of your patch.
[*] See the links in, e.g., https://llvm.org/docs/Contributing.html#how-to-submit-a-patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I keep a single commit in the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you should do a squash commit (with updated log message for the full commit) when done. The github UI will ask you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ready to land.
3bddeb1
into
anza-xyz:solana-rustc/16.0-2023-06-05
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM. This is the first task in solana-labs/solana#34250
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM. This is the first task in solana-labs/solana#34250
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM. This is the first task in solana-labs/solana#34250
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM. This is the first task in solana-labs/solana#34250
This PR replaces
sub r11, imm
byadd r11, -imm
and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM.This is the first task in solana-labs/solana#34250