Skip to content

[mlir][vector] What passes should we test in vector-to-llvm.mlir? #124308

Closed
@banach-space

Description

@banach-space

As highlighted in this comment, tests in:

currently exercise the full ConvertVectorToLLVMPass. This is due to the use of -convert-vector-to-llvm in that file. However, given the location of this test file, it should focus exclusively on testing "Vector to LLVM conversion patterns," specifically:

These conversion patterns are included in ConvertVectorToLLVMPass, which is why we are using -convert-vector-to-llvm. However, it is important to ensure that "vector-to-llvm.mlir" tests only the conversions from populateVectorToLLVMConversionPatterns. Tests for other patterns should be moved to separate, appropriate test files.

Proposed Actions:

  • Audit "vector-to-llvm.mlir" to ensure that it only tests conversions from populateVectorToLLVMConversionPatterns.
  • Relocate tests for other patterns to "test/Dialect/Vector" or other suitable test files.

Thanks for taking a look!
-Andrzej

CC @dcaballe @Groverkss @hanhanW

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions