This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Canonicalize contract to fma when possible
AbandonedPublic

Authored by antiagainst on May 19 2022, 12:07 PM.

Details

Summary

If all reduction dimensions are of size one for a vector.contract
op, we might be able to canonicalize it into a plain vector.fma
op. This allows us to clean up the IR earlier and generate large
vector.fma ops before lowering, which may unroll the parell
dimensions. By then it might be too late.

Diff Detail

Event Timeline

antiagainst created this revision.May 19 2022, 12:07 PM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.May 19 2022, 12:07 PM

Fix return value

antiagainst abandoned this revision.May 23 2022, 11:50 AM

Not needed anymore.