[mlir][Vector][NFC] Small vector masking clean-up
authorDiego Caballero <diegocaballero@google.com>
Mon, 3 Apr 2023 21:34:38 +0000 (21:34 +0000)
committerDiego Caballero <diegocaballero@google.com>
Mon, 3 Apr 2023 21:58:27 +0000 (21:58 +0000)
commit04798db4ea42e201adc4d91a9452235a15fd59e8
tree8b90fba8406a7d1a9c96afc4a4ed555efe81bfd9
parentd78ceeba986b5ebe83f935175e584c346a52b8a3
[mlir][Vector][NFC] Small vector masking clean-up

We stored static (int) and dynamic (Value) iteration space dims separately
and then merged them by creating constant ops for the static ones. This
merge happened multiple times during vectorization. This PR changes that
to perform the merge once and store in the state instead of the dynamic
values in isolation.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D147351
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
mlir/test/Dialect/Linalg/vectorization.mlir