This is an archive of the discontinued LLVM Phabricator instance.

[Pipelines] Hoist CoroEarly as a module pass
ClosedPublic

Authored by ChuanqiXu on Apr 18 2022, 1:04 AM.

Details

Summary

This change could reduce the time we call declaresCoroEarlyIntrinsics. And it is helpful for future changes.

Diff Detail

Event Timeline

ChuanqiXu created this revision.Apr 18 2022, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 1:04 AM
ChuanqiXu requested review of this revision.Apr 18 2022, 1:04 AM

is the fewer calls to declaresCoroEarlyIntrinsics the only reason for this change? have you measured that the calls actually take up any noticeable amount of compile time?

is the fewer calls to declaresCoroEarlyIntrinsics the only reason for this change? have you measured that the calls actually take up any noticeable amount of compile time?

Oh, there are other reasons to do this change. In fact, this is a part of patch that I am working on. And I feel this part is independent and looks good to me as a separate patch. So I send it here. I didn't measure the time. But I guess it wouldn't reduce a noticeable amount of compile time.

aeubanks accepted this revision.Apr 18 2022, 7:25 PM

this patch looks fine if it's part of other related work, it's just that the summary is misleading because I'm fairly certain that the compile time overhead is negligible. I'd change the summary to reflect why you actually want to do this change

This revision is now accepted and ready to land.Apr 18 2022, 7:25 PM

this patch looks fine if it's part of other related work, it's just that the summary is misleading because I'm fairly certain that the compile time overhead is negligible. I'd change the summary to reflect why you actually want to do this change

Thanks! I would edit the summary when submitted.

ChuanqiXu edited the summary of this revision. (Show Details)Apr 18 2022, 8:03 PM
This revision was landed with ongoing or failed builds.Apr 18 2022, 8:06 PM
This revision was automatically updated to reflect the committed changes.