[all-commits] [llvm/llvm-project] 32ec5f: [ValueTracking] Use BinaryOperator instead of Oper...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Dec 7 10:28:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32ec5fbfed32f37aa070ee38e9b038bd84ca6479
      https://github.com/llvm/llvm-project/commit/32ec5fbfed32f37aa070ee38e9b038bd84ca6479
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list