We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b63d9b commit 5fa229bCopy full SHA for 5fa229b
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3650,7 +3650,8 @@ static std::optional<DecomposedBitMaskMul> matchBitmaskMul(Value *V) {
3650
3651
if (!ICmpInst::isEquality(ICmpDecompose->Pred) ||
3652
!ICmpDecompose->C.isZero() || !ICmpDecompose->Mask.isPowerOf2() ||
3653
- ICmpDecompose->Mask.isZero())
+ ICmpDecompose->Mask.isZero() ||
3654
+ NeZero->getBitWidth() != ICmpDecompose->Mask.getBitWidth())
3655
return std::nullopt;
3656
3657
if (!NeZero->urem(ICmpDecompose->Mask).isZero())
0 commit comments