diff options
author | Quinn Dawkins <quinn.dawkins@gmail.com> | 2024-02-28 10:52:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 10:52:57 -0500 |
commit | 6067129fbe8944d5bd39dc1bc2331ce5ed6ecee8 (patch) | |
tree | 54c5672bbeb9758e2e6400d7261ff37174ed5a33 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 3e35ba53e20dbbd3ccc191d71ed75d52dc36ec59 (diff) | |
download | llvm-6067129fbe8944d5bd39dc1bc2331ce5ed6ecee8.zip llvm-6067129fbe8944d5bd39dc1bc2331ce5ed6ecee8.tar.gz llvm-6067129fbe8944d5bd39dc1bc2331ce5ed6ecee8.tar.bz2 |
Revert "[mlir][vector] Add a pattern to fuse extract(constant_mask) (#81057)" (#83275)
This reverts commit 5cdb8c0c8854d08ac7ca131ce3e8d78a32eb6716.
This pattern is producing incorrect IR. For example,
```mlir
func.func @extract_subvector_from_constant_mask() -> vector<16xi1> {
%mask = vector.constant_mask [2, 3] : vector<16x16xi1>
%extract = vector.extract %mask[8] : vector<16xi1> from vector<16x16xi1>
return %extract : vector<16xi1>
}
```
Canonicalizes to
```mlir
func.func @extract_subvector_from_constant_mask() -> vector<16xi1> {
%0 = vector.constant_mask [3] : vector<16xi1>
return %0 : vector<16xi1>
}
```
Where it should be a zero mask because the extraction index (8) is
greater than the constant mask size along that dim (2).
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions