This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Delay adding the __resume function
ClosedPublic

Authored by csigg on Feb 2 2021, 6:46 AM.

Details

Summary

The __resume function trips up LLVM's 'X86 DAG->DAG Instruction Selection' unless optimizations are disabled.

Only adding the __resume function when it's needed allows lowering through AsyncToLLVM and LLVM without '-O0' as long as the coroutine functionality is not used.

Diff Detail

Event Timeline

csigg created this revision.Feb 2 2021, 6:46 AM
csigg requested review of this revision.Feb 2 2021, 6:46 AM
ezhulenev accepted this revision.Feb 2 2021, 8:38 AM
This revision is now accepted and ready to land.Feb 2 2021, 8:38 AM
This revision was automatically updated to reflect the committed changes.