[llvm] b1b436c - [AArch64] Fix build error from extra !
Samuel Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 06:44:39 PDT 2024
Author: Samuel Tebbs
Date: 2024-09-19T14:45:30+01:00
New Revision: b1b436c108101f31b27eedb3a9591b7a02e0bc6e
URL: https://github.com/llvm/llvm-project/commit/b1b436c108101f31b27eedb3a9591b7a02e0bc6e
DIFF: https://github.com/llvm/llvm-project/commit/b1b436c108101f31b27eedb3a9591b7a02e0bc6e.diff
LOG: [AArch64] Fix build error from extra !
This fixes a build failure caused by https://github.com/llvm/llvm-project/pull/108521
Added:
Modified:
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index ba01f0f9fb0ac1..0c3e2df9fa4b4b 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -534,7 +534,7 @@ static InstructionCost getHistogramCost(const IntrinsicCostAttributes &ICA) {
// HistCnt only supports 32b and 64b element types
unsigned LegalEltSize = EltSize <= 32 ? 32 : 64;
- if (EC == 2 || (!LegalEltSize == 32 && EC == 4))
+ if (EC == 2 || (LegalEltSize == 32 && EC == 4))
return InstructionCost(BaseHistCntCost);
unsigned NaturalVectorWidth = AArch64::SVEBitsPerBlock / LegalEltSize;
More information about the llvm-commits
mailing list