Skip to content

Commit 94b33c1

Browse files
committed
Update ARMISelLowering.cpp
1 parent bc6eded commit 94b33c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20133,7 +20133,7 @@ bool ARMTargetLowering::targetShrinkDemandedConstant(
2013320133
assert(VT == MVT::i32 && "Unexpected integer type");
2013420134

2013520135
// Exit early if we demand all bits.
20136-
if (DemandedBits.isAllOnesValue())
20136+
if (DemandedBits.popcount() == 32)
2013720137
return false;
2013820138

2013920139
// Only optimize AND for now.

0 commit comments

Comments
 (0)