forked from OSchip/llvm-project
parent
41a83d7871
commit
af2b0571d0
|
@ -350,6 +350,7 @@ namespace {
|
||||||
} break;
|
} break;
|
||||||
case Instruction::Xor: {
|
case Instruction::Xor: {
|
||||||
ConstantIntegral *CI = dyn_cast<ConstantIntegral>(V1);
|
ConstantIntegral *CI = dyn_cast<ConstantIntegral>(V1);
|
||||||
|
if (!CI) break;
|
||||||
if (CI->isAllOnesValue()) {
|
if (CI->isAllOnesValue()) {
|
||||||
if (BO->getOperand(0) == V1)
|
if (BO->getOperand(0) == V1)
|
||||||
add(Opcode, ConstantBool::getFalse(), BO->getOperand(1), false);
|
add(Opcode, ConstantBool::getFalse(), BO->getOperand(1), false);
|
||||||
|
|
Loading…
Reference in New Issue