Unverified Commit 32ec5fbf authored by Craig Topper's avatar Craig Topper Committed by GitHub
Browse files

[ValueTracking] Use BinaryOperator instead of Operator in matchSimpleRecurrence. (#74678)

Operator allows the phi operand to be a ConstantExpr. A ConstantExpr is
a valid operand to a phi, but is never going to be a recurrence.
We can only match a BinaryOperator so use that instead.
parent ea991a11
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment