Skip to content

Commit 282bdb4

Browse files
authored
[AArch64] Use isAllOnes rather than popcount() == Size (NFC) (#167884)
1 parent 94c751d commit 282bdb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ bool AArch64TargetLowering::targetShrinkDemandedConstant(
25582558
return false;
25592559

25602560
// Exit early if we demand all bits.
2561-
if (DemandedBits.popcount() == Size)
2561+
if (DemandedBits.isAllOnes())
25622562
return false;
25632563

25642564
unsigned NewOpc;

0 commit comments

Comments
 (0)