File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -425,12 +425,12 @@ void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
425425
426426// Returns true if A matches B + C where C is constant.
427427static bool matchesAdd (Value *A, Value *&B, ConstantInt *&C) {
428- return match (A, m_Add (m_Value (B), m_ConstantInt (C)));
428+ return match (A, m_c_Add (m_Value (B), m_ConstantInt (C)));
429429}
430430
431431// Returns true if A matches B | C where C is constant.
432432static bool matchesOr (Value *A, Value *&B, ConstantInt *&C) {
433- return match (A, m_Or (m_Value (B), m_ConstantInt (C)));
433+ return match (A, m_c_Or (m_Value (B), m_ConstantInt (C)));
434434}
435435
436436void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul (
You can’t perform that action at this time.
0 commit comments