[mlir] [VectorOps] Enable 32-bit index optimizations
authoraartbik <ajcbik@google.com>
Wed, 9 Sep 2020 18:11:52 +0000 (11:11 -0700)
committeraartbik <ajcbik@google.com>
Thu, 10 Sep 2020 07:26:27 +0000 (00:26 -0700)
commit3c42c0dcf631ad6b90e718df895c05f79718659f
treee274660bdf9c320e626bc50f07a23872bf62349b
parent0bdf8c9127244127aef3620a8ef1eb4d2be57dad
[mlir] [VectorOps] Enable 32-bit index optimizations

Rationale:
After some discussion we decided that it is safe to assume 32-bit
indices for all subscripting in the vector dialect (it is unlikely
the dialect will be used; or even work; for such long vectors).
So rather than detecting specific situations that can exploit
32-bit indices with higher parallel SIMD, we just optimize it
by default, and let users that don't want it opt-out.

Reviewed By: nicolasvasilache, bkramer

Differential Revision: https://reviews.llvm.org/D87404
mlir/include/mlir/Conversion/Passes.td
mlir/include/mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir