Unverified Commit 8cc8e5d6 authored by Nuri Amari's avatar Nuri Amari Committed by GitHub
Browse files

Run ObjCContractPass in Default Codegen Pipeline (#92331)



Prior to this patch, when using -fthinlto-index= the ObjCARCContractPass isn't run prior to CodeGen, and instruction selection fails on IR containing arc intrinsics. This patch is motivated by that usecase.

The pass was previously added in various places codegen is performed. This patch adds the pass to the default codegen pipepline, makes sure it bails immediately if no arc intrinsics are found, and removes the adhoc scheduling of the pass. 

Co-authored-by: default avatarNuri Amari <nuriamari@fb.com>
parent 910292c3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment