mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[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
8b55364bd6
commit
9ad2af4ed8
@ -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
Block a user