forked from OSchip/llvm-project
[InstCombine] Remove unnecessary worklist push; NFCI
This is no longer needed after d4627b90a0
,
should have dropped it there...
This commit is contained in:
parent
d4627b90a0
commit
5b2b67be8e
|
@ -3099,7 +3099,6 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
|
||||||
if (match(Op0, m_Or(m_Value(X), m_APInt(C))) &&
|
if (match(Op0, m_Or(m_Value(X), m_APInt(C))) &&
|
||||||
MaskedValueIsZero(X, *C, 0, &I)) {
|
MaskedValueIsZero(X, *C, 0, &I)) {
|
||||||
Constant *NewC = ConstantInt::get(I.getType(), *C ^ *RHSC);
|
Constant *NewC = ConstantInt::get(I.getType(), *C ^ *RHSC);
|
||||||
Worklist.push(cast<Instruction>(Op0));
|
|
||||||
return BinaryOperator::CreateXor(X, NewC);
|
return BinaryOperator::CreateXor(X, NewC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue