This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Use the AANoNull attribute directly in AADereferenceable
ClosedPublic

Authored by jdoerfert on Aug 12 2019, 3:09 PM.

Details

Summary

Instead of constantly keeping track of the nonnull status with the
dereferenceable information we can simply query the nonnull attribute
whenever we need the information (debug + manifest).

Event Timeline

jdoerfert created this revision.Aug 12 2019, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2019, 3:09 PM
uenoku accepted this revision.Aug 12 2019, 9:00 PM

I think it is better to use intersectAssumedBits for BooleanState.
Otherwise, LGTM.

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

intersectAssumedBits is better.

1825

intersectAssumedBits is better.

1858

intersectAssumedBits is better.

This revision is now accepted and ready to land.Aug 12 2019, 9:00 PM
This revision was automatically updated to reflect the committed changes.