This is an archive of the discontinued LLVM Phabricator instance.

[ObjCARC] Drop nullary clang.arc.attachedcall bundles in autoupgrade.
ClosedPublic

Authored by ab on Apr 14 2022, 12:28 PM.

Details

Summary

This was originally part of D118214, and was removed because we didn't know of situations where the post-arc-contract nullary bundle ends up in bitcode. Turns out this does happen, with swiftc -embed-bitcode!

In certain use-cases, these can be emitted by old compilers, but the
operand is now always required.  These are only used for optimizations,
so it's safe to drop them if they happen to have the now-invalid format.
The semantically-required call is already a separate instruction.

Diff Detail

Event Timeline

ab created this revision.Apr 14 2022, 12:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
ab requested review of this revision.Apr 14 2022, 12:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2022, 12:28 PM
This revision is now accepted and ready to land.Apr 16 2022, 12:00 PM
This revision was landed with ongoing or failed builds.May 20 2022, 3:27 PM
This revision was automatically updated to reflect the committed changes.