This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Remove restriction on simplifying function pointers
ClosedPublic

Authored by nikic on Mar 4 2022, 3:41 AM.

Details

Summary

Dropping this restriction seems to work fine (there are no assertion failures), but I'm not sure whether this is guarding against some kind of silent CG corruption.

If doing this is still problematic, then the place to address it would probably be https://github.com/llvm/llvm-project/blob/8f5bdaf481c3f4e6876a5ae0e4d7c6ed2042e6a6/llvm/lib/Transforms/IPO/Attributor.cpp#L1856-L1859, which already prevents replacement outside the SCC, so I'm not quite sure what this check is intended to avoid.

Diff Detail

Event Timeline

nikic created this revision.Mar 4 2022, 3:41 AM
Herald added a reviewer: homerdin. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
nikic requested review of this revision.Mar 4 2022, 3:41 AM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Mar 4 2022, 11:36 AM

LG, assuming nothing breaks we probably restrict the problematic replacements already (or the updated got better).

This revision is now accepted and ready to land.Mar 4 2022, 11:36 AM
This revision was landed with ongoing or failed builds.Mar 7 2022, 2:55 AM
This revision was automatically updated to reflect the committed changes.