This is an archive of the discontinued LLVM Phabricator instance.

Don't combine if there would remain no true reduction dim.
ClosedPublic

Authored by Benoit on Jul 19 2022, 12:04 PM.

Details

Summary

I just need this tiny tweak to the recently added logic to be able to actually drop my custom vectorization pattern, https://github.com/iree-org/iree/pull/9647 . This wasn't needed before but something has changed since I wrote the earlier changes.

Diff Detail

Event Timeline

Benoit created this revision.Jul 19 2022, 12:04 PM
Benoit requested review of this revision.Jul 19 2022, 12:04 PM
Benoit edited the summary of this revision. (Show Details)Jul 19 2022, 12:06 PM
Benoit added a reviewer: ThomasRaoux.

Can you add a test?

Benoit updated this revision to Diff 445911.Jul 19 2022, 12:40 PM

add a lit test, and lint.

ThomasRaoux accepted this revision.Jul 19 2022, 12:42 PM
This revision is now accepted and ready to land.Jul 19 2022, 12:42 PM
Benoit updated this revision to Diff 445913.Jul 19 2022, 12:47 PM

remove copypasted comment referring to nonexistent var.

This revision was landed with ongoing or failed builds.Jul 19 2022, 12:59 PM
This revision was automatically updated to reflect the committed changes.

Nice, thanks!

LGTM

mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
1170

This feels like it could be extracted in a util somewhere.