This is an archive of the discontinued LLVM Phabricator instance.

[DAG] TransformFPLoadStorePair - replace getABITypeAlign with allowsMemoryAccess (PR45116)
ClosedPublic

Authored by RKSimon on Aug 18 2021, 12:11 PM.

Details

Summary

One of the cases identified in PR45116 - we don't need to limit load combines (in this case for fp->int load/store copies) to ABI alignment, we can use allowsMemoryAccess - which tests using getABITypeAlign, but also checks if a target permits misaligned memory loads by checking allowsMisalignedMemoryAccesses as a fallback.

Diff Detail

Event Timeline

RKSimon created this revision.Aug 18 2021, 12:11 PM
RKSimon requested review of this revision.Aug 18 2021, 12:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2021, 12:11 PM
shchenz accepted this revision.Aug 22 2021, 9:57 PM

Looks reasonable to me. It would be better to wait for some days for other reviewers, like @nemanjai comments.

This revision is now accepted and ready to land.Aug 22 2021, 9:57 PM

Cheers - I'm going to tentatively commit this today, I'm around for a few more days to address any post-commit feedback.