Skip to content

[llvm][aarch64] fix copypaste typo #120725

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

Merged
merged 2 commits into from
Jan 2, 2025
Merged

[llvm][aarch64] fix copypaste typo #120725

merged 2 commits into from
Jan 2, 2025

Conversation

klensy
Copy link
Contributor

@klensy klensy commented Dec 20, 2024

moved from #119881

cc @davemgreen

@llvmbot
Copy link
Member

llvmbot commented Dec 20, 2024

@llvm/pr-subscribers-backend-aarch64

Author: klensy (klensy)

Changes

moved from #119881

cc @davemgreen


Full diff: https://github.com/llvm/llvm-project/pull/120725.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AArch64/AArch64ISelLowering.cpp (+1-1)
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index a27c030237c878..1dce6189f0c290 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -18396,7 +18396,7 @@ static SDValue performUADDVAddCombine(SDValue A, SelectionDAG &DAG) {
     EVT VT = A.getValueType();
     SDValue Op0 = A.getOperand(0);
     SDValue Op1 = A.getOperand(1);
-    if (Op0.getOpcode() != Op0.getOpcode() ||
+    if (Op0.getOpcode() != Op1.getOpcode() ||
         (Op0.getOpcode() != ISD::ZERO_EXTEND &&
          Op0.getOpcode() != ISD::SIGN_EXTEND))
       return SDValue();

@klensy
Copy link
Contributor Author

klensy commented Dec 20, 2024

Where should i put test from #119881 (comment) ? Somewhere at ./llvm/test/CodeGen/AArch64/?

@davemgreen
Copy link
Collaborator

Where should i put test from #119881 (comment) ? Somewhere at ./llvm/test/CodeGen/AArch64/?

Into llvm/test/CodeGen/AArch64/vecreduce-add.ll please. There is already a add_v4i32_v4i64_zext/add_v4i32_v4i64_sext, although they look a little different.

Thanks for doing this.

Copy link
Collaborator

@davemgreen davemgreen left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM

@davemgreen
Copy link
Collaborator

Should I hit submit and merge on this? I never know who has commit access themselves.

@klensy
Copy link
Contributor Author

klensy commented Jan 2, 2025

I don't have any rights anyway, so, up to you or other reviewer.

@davemgreen
Copy link
Collaborator

Lets do it. Thanks for noticing the issue and putting together a fix.

@davemgreen davemgreen merged commit 4a890c2 into llvm:main Jan 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants