Skip to content

Commit

Permalink
[AArch64] Fix build error from extra !
Browse files Browse the repository at this point in the history
This fixes a build failure caused by llvm#108521
  • Loading branch information
SamTebbs33 committed Sep 19, 2024
1 parent 3bd8f4e commit b1b436c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1b436c

Please sign in to comment.