Masked arithmetic operations don't need to be explicitly generated from
MLIR, the LLVM back-end will select masked arithmetic instructions when
needed. We can leave only the complex SVE instrinsics that are easy to
generate in MLIR but hard to select in LLVM.
Details
Details
- Reviewers
c-rhodes aartbik ftynse nicolasvasilache
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I am not very convinced by the motivation of LLVM backend selecting the appropriate instructions. On other platforms, we have repeatedly seen the selection being fragile and sensitive to factors beyond our control, so I would rather have the possibility to target these directly even if it is not being used by some compilations pipelnes.
Comment Actions
Fair enough. I was trying to make the dialect as lean, and easy to maintain, as possible but I guess as long as there are issues in the back-end, there's no rush to get rid of these. I'm going to close the patch, and we can revisit in the future. Thanks, Alex.