diff options
author | Han-Chung Wang <hanhan0912@gmail.com> | 2025-09-24 14:27:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-24 16:27:30 -0500 |
commit | 6f58c16c494f7a287137d23728fd66d6f176ee9a (patch) | |
tree | 6e035263b3f0394a6bba51bffd57c7f23fa7af71 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 876296e9b7f0b1393cdaeb46901e18eb0b49ff93 (diff) | |
download | llvm-6f58c16c494f7a287137d23728fd66d6f176ee9a.zip llvm-6f58c16c494f7a287137d23728fd66d6f176ee9a.tar.gz llvm-6f58c16c494f7a287137d23728fd66d6f176ee9a.tar.bz2 |
[mlir][linalg] Use ub.poison in data layout propagation if a packed operand requires padding. (#159467)
In the past, it was hard to set padding values because we did not have
ub.poison. It is not always correct if we set zeros as padding values.
Now we can use `ub.poison` in this case. The revision adds the support
for setting padding value using `ub.poison` when padding is required in
the propagation. Otherwise, it creates an invalid pack op.
Additionally the revision adds a control option for allowing padding in
the pattern which is false by default. To correctly do this, a new
`requirePaddingValueStrict` method is added which assumes dynamic dims
would mean padding is required.
The revision also removes trailing white space in the lit test file.
Co-authored-by : Nirvedh Meshram <nirvedh@gmail.com>
---------
Signed-off-by: hanhanW <hanhan0912@gmail.com>
Signed-off-by: Nirvedh Meshram <nirvedh@gmail.com>
Co-authored-by: Nirvedh Meshram <nirvedh@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions