This is an archive of the discontinued LLVM Phabricator instance.

Utils: Always alignment when expanding mem intrinsics
ClosedPublic

Authored by arsenm on Feb 14 2020, 1:31 PM.

Details

Summary

This was creating natural aligned loads and stores, which may not be
the case. The target could request a wider type load with less
alignment.

Diff Detail

Event Timeline

arsenm created this revision.Feb 14 2020, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2020, 1:32 PM
arsenm updated this revision to Diff 244768.Feb 14 2020, 2:00 PM

Remove leftover

jdoerfert accepted this revision.Mar 3 2020, 10:00 AM
jdoerfert added a subscriber: jdoerfert.

I think this makes sense. LGTM, one nit.

llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
64

Isn't PartSize == LoopOpSize ?

This revision is now accepted and ready to land.Mar 3 2020, 10:00 AM
arsenm closed this revision.Mar 16 2020, 11:35 AM
arsenm marked 2 inline comments as done.
llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
64

Yes