mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +00:00
don't bother handling non-canonical icmp's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
803a29d19f
commit
662269d2ab
@ -306,11 +306,10 @@ GatherConstantSetEQs(Value *V, std::vector<ConstantInt*> &Values,
|
||||
Values.push_back(C);
|
||||
return Inst->getOperand(0);
|
||||
}
|
||||
if (ConstantInt *C = GetConstantInt(Inst->getOperand(0), TD)) {
|
||||
Values.push_back(C);
|
||||
return Inst->getOperand(1);
|
||||
return 0;
|
||||
}
|
||||
} else if (Inst->getOpcode() == Instruction::Or) {
|
||||
|
||||
if (Inst->getOpcode() == Instruction::Or) {
|
||||
if (Value *LHS = GatherConstantSetEQs(Inst->getOperand(0), Values, TD))
|
||||
if (Value *RHS = GatherConstantSetEQs(Inst->getOperand(1), Values, TD))
|
||||
if (LHS == RHS)
|
||||
@ -334,11 +333,10 @@ GatherConstantSetNEs(Value *V, std::vector<ConstantInt*> &Values,
|
||||
Values.push_back(C);
|
||||
return Inst->getOperand(0);
|
||||
}
|
||||
if (ConstantInt *C = GetConstantInt(Inst->getOperand(0), TD)) {
|
||||
Values.push_back(C);
|
||||
return Inst->getOperand(1);
|
||||
return 0;
|
||||
}
|
||||
} else if (Inst->getOpcode() == Instruction::And) {
|
||||
|
||||
if (Inst->getOpcode() == Instruction::And) {
|
||||
if (Value *LHS = GatherConstantSetNEs(Inst->getOperand(0), Values, TD))
|
||||
if (Value *RHS = GatherConstantSetNEs(Inst->getOperand(1), Values, TD))
|
||||
if (LHS == RHS)
|
||||
|
Loading…
Reference in New Issue
Block a user