This is an archive of the discontinued LLVM Phabricator instance.

[Coroutines] Run EarlyCSE for changed functions in CoroCleanup (3/3)
AbandonedPublic

Authored by ChuanqiXu on May 10 2022, 12:03 AM.

Details

Summary

After the previous revision (https://reviews.llvm.org/D125292) landed, the optimizations for readnone calls in coroutines would be blocked even if these calls don't cross suspend points.

This patch tries to solve the problem by run EarlyCSE for the functions which is changed in CoroCleanup pass. It wouldn't affect normal functions.

Diff Detail