[mlir] Fix getVectorReductionOp
authorAmy Zhuang <amy.zhuang@intel.com>
Tue, 26 Oct 2021 15:42:22 +0000 (08:42 -0700)
committerAmy Zhuang <amy.zhuang@intel.com>
Tue, 26 Oct 2021 15:42:34 +0000 (08:42 -0700)
commitb9ae741d3e809ec38a4131f5d1c48131be3af256
treec52fcf21a10c694c77ec8c7e4a0784d139e6d24c
parentc3e698e2f532262058691701d424da464012f0c0
[mlir] Fix getVectorReductionOp

1.Combining kind min/max of Vector reduction op has been changed to
  minf/maxf, minsi/maxsi, and minui/maxui. Modify getVectorReductionOp
  accordingly.
2.Add min/max to supported reductions.

Reviewed By: dcaballe, nicolasvasilache

Differential Revision: https://reviews.llvm.org/D112246
mlir/lib/Analysis/AffineAnalysis.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/test/Dialect/Affine/SuperVectorize/vectorize_reduction.mlir