[all-commits] [llvm/llvm-project] 7dc779: [mlir] Fix support for lowering non-32-bit affine ...

ftynse via All-commits all-commits at lists.llvm.org
Tue Apr 6 05:00:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dc7790ec52efe799211edde9114ba5e467ccb36
      https://github.com/llvm/llvm-project/commit/7dc7790ec52efe799211edde9114ba5e467ccb36
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2021-04-06 (Tue, 06 Apr 2021)

  Changed paths:
    M mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
    M mlir/test/Conversion/AffineToStandard/lower-affine.mlir

  Log Message:
  -----------
  [mlir] Fix support for lowering non-32-bit affine reductions.

The existing implementation was always creating 32-bit constants for
floating-point and integer reductions regardless of the actual type, which
resulted in invalid IR being generated for any types other than f32 and i32
when lowering affine.parallel to SCF. Use the actual type instead.

Reviewed By: chelini

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




More information about the All-commits mailing list