Skip to content

Commit b195e60

Browse files
AZero13jayfoad
andauthored
Update ARMISelLowering.cpp
Co-authored-by: Jay Foad <[email protected]>
1 parent 654ac92 commit b195e60

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
@@ -20142,7 +20142,7 @@ bool ARMTargetLowering::targetShrinkDemandedConstant(
2014220142
assert(VT == MVT::i32 && "Unexpected integer type");
2014320143

2014420144
// Exit early if we demand all bits.
20145-
if (DemandedBits.popcount() == 32)
20145+
if (DemandedBits.isAllOnes())
2014620146
return false;
2014720147

2014820148
// Only optimize AND for now.

0 commit comments

Comments
 (0)