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

[AArch64InstPrinter] Change printAddSubImm to comment imm value when … #3190

Conversation

jasonmolenda
Copy link

[AArch64InstPrinter] Change printAddSubImm to comment imm value when shifted

Add a comment when there is a shifted value,
add x9, x0, #291, lsl #12 ; =1191936
but not when the immediate value is unshifted,
subs x9, x0, #256 ; =256
when the comment adds nothing additional to the reader.

Differential Revision: https://reviews.llvm.org/D107196

(cherry picked from commit 0d8cd4e)

…shifted

Add a comment when there is a shifted value,
    add x9, x0, swiftlang#291, lsl swiftlang#12 ; =1191936
but not when the immediate value is unshifted,
    subs x9, x0, swiftlang#256 ; =256
when the comment adds nothing additional to the reader.

Differential Revision: https://reviews.llvm.org/D107196

(cherry picked from commit 0d8cd4e)
@jasonmolenda jasonmolenda merged commit 5e8b150 into swiftlang:stable/20210726 Aug 24, 2021
@jasonmolenda jasonmolenda deleted the aarch64-instprinter-dont-add-comment-for-simple-imms branch August 24, 2021 08:30
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.

1 participant