[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
Loading
Please register or sign in to comment