[llvm] 1c2d7b3 - [AArch64] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 07:03:53 PDT 2025
Author: Kazu Hirata
Date: 2025-09-17T07:03:46-07:00
New Revision: 1c2d7b3065dc143289d1e05caeeb7f77fac6575a
URL: https://github.com/llvm/llvm-project/commit/1c2d7b3065dc143289d1e05caeeb7f77fac6575a
DIFF: https://github.com/llvm/llvm-project/commit/1c2d7b3065dc143289d1e05caeeb7f77fac6575a.diff
LOG: [AArch64] Fix a warning
This patch fixes:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:19079:7: error:
unused variable 'VT' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 0ca5e89263b72..fc3efb072d57b 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -19076,9 +19076,8 @@ static SDValue performUADDVCombine(SDNode *N, SelectionDAG &DAG) {
}
// uaddv(A) --> A if all lanes of A are known to be zeros except the 0th lane.
- MVT VT = N->getSimpleValueType(0);
MVT OpVT = A.getSimpleValueType();
- assert(VT == OpVT &&
+ assert(N->getSimpleValueType(0) == OpVT &&
"The operand type should be consistent with the result type of UADDV");
APInt Mask = APInt::getAllOnes(OpVT.getVectorNumElements());
Mask.clearBit(0);
More information about the llvm-commits
mailing list