This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Use structured deduction for AADereferenceable
ClosedPublic

Authored by jdoerfert on Aug 14 2019, 8:52 PM.

Details

Summary

This is analogous to D66128 but for AADereferenceable. We have the logic
concentrated in the floating value updateImpl and we use the combiner
helper classes for arguments and return values.

The regressions will go away with "on-demand" attribute creation.
Improvements are already visible in the existing tests.

Event Timeline

jdoerfert created this revision.Aug 14 2019, 8:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2019, 8:52 PM
uenoku accepted this revision.Aug 17 2019, 4:37 AM

LGTM

This revision is now accepted and ready to land.Aug 17 2019, 4:37 AM
uenoku added inline comments.Aug 17 2019, 4:39 AM
llvm/lib/Transforms/IPO/Attributor.cpp
2067

semicolon

This revision was automatically updated to reflect the committed changes.