Skip to content

Commit cd65a1b

Browse files
committed
Update StraightLineStrengthReduce.cpp
1 parent f5c15eb commit cd65a1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,12 +425,12 @@ void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForAdd(
425425

426426
// Returns true if A matches B + C where C is constant.
427427
static 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.
432432
static 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

436436
void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForMul(

0 commit comments

Comments
 (0)