forked from OSchip/llvm-project
[Analysis] findAffectedValues - remove unused ConstantInt argument. NFCI.
We can use m_ConstantInt without a result value as we don't ever use it.
This commit is contained in:
parent
f84c77f424
commit
2e604d23b4
|
@ -102,13 +102,12 @@ findAffectedValues(CallInst *CI,
|
|||
}
|
||||
|
||||
Value *B;
|
||||
ConstantInt *C;
|
||||
// (A & B) or (A | B) or (A ^ B).
|
||||
if (match(V, m_BitwiseLogic(m_Value(A), m_Value(B)))) {
|
||||
AddAffected(A);
|
||||
AddAffected(B);
|
||||
// (A << C) or (A >>_s C) or (A >>_u C) where C is some constant.
|
||||
} else if (match(V, m_Shift(m_Value(A), m_ConstantInt(C)))) {
|
||||
} else if (match(V, m_Shift(m_Value(A), m_ConstantInt()))) {
|
||||
AddAffected(A);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue