This is an archive of the discontinued LLVM Phabricator instance.

[GlobalsModRef] Remove check for allocator calls
ClosedPublic

Authored by nikic on Jun 8 2022, 1:04 AM.

Details

Summary

As the FIXME already indicates, I don't see why this code would be necessary. If there's a call to an allocator function, that should get treated just like any other function call -- usually it will be a declaration and handled conservatively based on memory attributes only. There should be no need to explicitly force it to be modref. No test failures either, so I think this is just dead code.

Diff Detail

Event Timeline

nikic created this revision.Jun 8 2022, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 1:04 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic requested review of this revision.Jun 8 2022, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 1:04 AM
fhahn accepted this revision.Jun 21 2022, 3:23 AM
fhahn added a subscriber: fhahn.

LGTM, thanks!

This revision is now accepted and ready to land.Jun 21 2022, 3:23 AM
This revision was landed with ongoing or failed builds.Jun 21 2022, 5:24 AM
This revision was automatically updated to reflect the committed changes.