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;
|
Value *B;
|
||||||
ConstantInt *C;
|
|
||||||
// (A & B) or (A | B) or (A ^ B).
|
// (A & B) or (A | B) or (A ^ B).
|
||||||
if (match(V, m_BitwiseLogic(m_Value(A), m_Value(B)))) {
|
if (match(V, m_BitwiseLogic(m_Value(A), m_Value(B)))) {
|
||||||
AddAffected(A);
|
AddAffected(A);
|
||||||
AddAffected(B);
|
AddAffected(B);
|
||||||
// (A << C) or (A >>_s C) or (A >>_u C) where C is some constant.
|
// (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);
|
AddAffected(A);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue