This is an archive of the discontinued LLVM Phabricator instance.

[mlir][VectorToSCF] 128 byte alignment of alloc ops
ClosedPublic

Authored by limo1996 on Aug 24 2020, 6:08 AM.

Details

Summary

Added 128 byte alignment to alloc ops created in VectorToSCF pass.
128b alignment was already introduced to this pass but not to all alloc
ops. This commit changes that by adding 128b alignment to the remaining ops.

Diff Detail

Event Timeline

limo1996 created this revision.Aug 24 2020, 6:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2020, 6:08 AM
limo1996 requested review of this revision.Aug 24 2020, 6:08 AM
aartbik accepted this revision.Aug 24 2020, 9:40 AM

can you say a bit more on the underlying motivation in the description (e.g. performance improvement)?

Also, do we want to allocate all data this way, what about an 1x1 or 2x2 array allocation? Should size play a role in the heuristics?

mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
581

let's move all occurrences of 128 (including the one at function entry) to a symbolic constant somewhere

This revision is now accepted and ready to land.Aug 24 2020, 9:40 AM
limo1996 updated this revision to Diff 287681.Aug 25 2020, 8:38 AM

Aart's comments addressed

limo1996 marked an inline comment as done.Aug 25 2020, 8:39 AM
This revision was landed with ongoing or failed builds.Sep 2 2020, 5:38 AM
This revision was automatically updated to reflect the committed changes.