This is an archive of the discontinued LLVM Phabricator instance.

[mlir][math] Update math arith expansions for vectorization
ClosedPublic

Authored by rsuderman on Mar 30 2023, 5:59 PM.

Details

Summary

The math arithmetic expansions do not support vectorized types.
Updated the lowerings so that they support vectorized types. This
includes a different implementation for math.ctlz to be a binary
search and not have variable termination time.

Diff Detail

Event Timeline

rsuderman created this revision.Mar 30 2023, 5:59 PM
rsuderman requested review of this revision.Mar 30 2023, 5:59 PM
NatashaKnk accepted this revision.Apr 5 2023, 11:39 AM
This revision is now accepted and ready to land.Apr 5 2023, 11:39 AM
jpienaar accepted this revision.Apr 5 2023, 12:57 PM
jpienaar added inline comments.
mlir/lib/Dialect/Math/Transforms/ExpandPatterns.cpp
37

Typo

This revision was landed with ongoing or failed builds.Apr 6 2023, 11:43 AM
This revision was automatically updated to reflect the committed changes.