This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Use must-be-executed-context in align deduction
ClosedPublic

Authored by uenoku on Nov 4 2019, 2:46 AM.

Details

Summary

This patch introduces align attribute deduction for callsite argument, function argument, function returned and floating value based on must-be-executed-context.

Diff Detail

Event Timeline

uenoku created this revision.Nov 4 2019, 2:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2019, 2:46 AM
jdoerfert accepted this revision.Nov 4 2019, 1:18 PM

LGTM

llvm/lib/Transforms/IPO/Attributor.cpp
3108

If you want to add support (here and maybe we need it in other places), you can look at the logic for peeling a GEP here: https://reviews.llvm.org/D66618#C1584090NL235.

This revision is now accepted and ready to land.Nov 4 2019, 1:18 PM
uenoku added inline comments.Nov 4 2019, 9:41 PM
llvm/lib/Transforms/IPO/Attributor.cpp
3108

I'll add support in another patch.

uenoku updated this revision to Diff 227853.Nov 5 2019, 5:40 AM

Minor update

This revision was automatically updated to reflect the committed changes.