diff options
| author | Aart Bik <ajcbik@google.com> | 2021-03-04 19:05:37 -0800 |
|---|---|---|
| committer | Aart Bik <ajcbik@google.com> | 2021-03-05 08:56:10 -0800 |
| commit | adc35b689f3a31c57fe56a8850c9c17fffea7199 (patch) | |
| tree | 5f1350892f1e335e6ce2a5e8188a628ee3663dde /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
| parent | 87d5b34c249421d92fb0c8c0cd208e067aa71e57 (diff) | |
[mlir][sparse] mask reduction update
Reduction updates should be masked, just like the load and stores.
Note that alternatively, we could use the fact that masked values are
zero of += updates and mask invariants to get this working but that
would not work for *= updates. Masking the update itself is cleanest.
This change also replaces the constant mask with a broadcast of "true"
since this constant folds much better for various folding patterns.
Reviewed By: nicolasvasilache
Differential Revision: https://reviews.llvm.org/D98000
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions
