This is an archive of the discontinued LLVM Phabricator instance.

miscompilation with coroutine since 15.0.0: function has no ret call
Needs RevisionPublic

Authored by adrianimboden on Sep 22 2022, 2:03 AM.

Details

Summary

This patch reverts 10c531cd5bf0166ce5bf42736506733b2285fdf8 (https://reviews.llvm.org/D128796)
It solves https://github.com/llvm/llvm-project/issues/57861.

@fhahn You mentioned in D128796, that the comment saying that this optimization must not be done is irrelevant. Is this comment related to this example?

Diff Detail

Event Timeline

adrianimboden created this revision.Sep 22 2022, 2:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 2:03 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
adrianimboden requested review of this revision.Sep 22 2022, 2:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 2:03 AM
fhahn requested changes to this revision.Sep 22 2022, 4:04 AM

Could you please provide the IR that SCCP is mis-compiling? It is not clear to me what is going wrong from the patch description and changed tests.

This revision now requires changes to proceed.Sep 22 2022, 4:04 AM