Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline

[ThinLTO] Add -objc-arc-contract pass
Needs ReviewPublic

Authored by EShuman on Aug 18 2023, 1:04 AM.



Add the -objc-arc-contract pass to enable distributed ThinLTO compilation of sources containing ARC.
The details are here –

I need a hand in creating a test (test case file is in attachment)

Diff Detail

Event Timeline

EShuman created this revision.Aug 18 2023, 1:04 AM
EShuman requested review of this revision.Aug 18 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2023, 1:04 AM

Regarding the test, take a look at clang/test/CodeGen/thinlto-distributed-newpm.ll. You can probably just do something similar and check that this pass is invoked under the expected options.