[all-commits] [llvm/llvm-project] ec32d5: [mlir] MathApproximations: scalars shape must be 0...

Eugene Zhulenev via All-commits all-commits at lists.llvm.org
Fri Oct 29 04:02:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec32d540f808c98b7d7e27cfdb2baa6719501eff
      https://github.com/llvm/llvm-project/commit/ec32d540f808c98b7d7e27cfdb2baa6719501eff
  Author: Eugene Zhulenev <ezhulenev at google.com>
  Date:   2021-10-29 (Fri, 29 Oct 2021)

  Changed paths:
    M mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp

  Log Message:
  -----------
  [mlir] MathApproximations: scalars shape must be 0-rank

Using [1] for representing shape of a scalar is incorrect, and will break with vectors of size 1.

- remove redundant helper functions
- fix couple of style warnings

Reviewed By: cota

Differential Revision: https://reviews.llvm.org/D112764




More information about the All-commits mailing list