This is an archive of the discontinued LLVM Phabricator instance.

[NFC][FuncAttrs] Keep track of modified functions
ClosedPublic

Authored by aeubanks on Nov 5 2021, 11:51 AM.

Details

Summary

This is in preparation for only invalidating analyses on changed
functions.

Diff Detail

Unit TestsFailed

Event Timeline

aeubanks created this revision.Nov 5 2021, 11:51 AM
aeubanks requested review of this revision.Nov 5 2021, 11:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 11:51 AM
asbirlea accepted this revision.Nov 8 2021, 11:26 AM
asbirlea added inline comments.
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
1803

if (F && inferAttributesFromOthers(*F))

This revision is now accepted and ready to land.Nov 8 2021, 11:26 AM
nikic added a subscriber: nikic.Nov 8 2021, 11:39 AM

Just wondering, why does this need a SmallSetVector? Does the order of FAM.invalidate calls matter somehow?

aeubanks updated this revision to Diff 385618.Nov 8 2021, 1:37 PM

use SmallSet (I got confused between SmallSet and SmallSetVector)

This revision was automatically updated to reflect the committed changes.