mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
[InstCombine/InstSimplify] add comments about code duplication; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302436 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3922dff07
commit
a594399826
@ -2535,6 +2535,9 @@ static Value *simplifyICmpWithConstant(CmpInst::Predicate Pred, Value *LHS,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/// TODO: A large part of this logic is duplicated in InstCombine's
|
||||
/// foldICmpBinOp(). We should be able to share that and avoid the code
|
||||
/// duplication.
|
||||
static Value *simplifyICmpWithBinOp(CmpInst::Predicate Pred, Value *LHS,
|
||||
Value *RHS, const SimplifyQuery &Q,
|
||||
unsigned MaxRecurse) {
|
||||
|
@ -2785,6 +2785,9 @@ Instruction *InstCombiner::foldICmpInstWithConstantNotInt(ICmpInst &I) {
|
||||
}
|
||||
|
||||
/// Try to fold icmp (binop), X or icmp X, (binop).
|
||||
/// TODO: A large part of this logic is duplicated in InstSimplify's
|
||||
/// simplifyICmpWithBinOp(). We should be able to share that and avoid the code
|
||||
/// duplication.
|
||||
Instruction *InstCombiner::foldICmpBinOp(ICmpInst &I) {
|
||||
Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user