This is an archive of the discontinued LLVM Phabricator instance.

[IRGen] Handle infinite cycles in findDominatingStoreToReturnValue.
ClosedPublic

Authored by fhahn on May 22 2023, 3:37 AM.

Details

Summary

If there is an infinite cycle in the IR, the loop will never exit. Keep
track of visited basic blocks in a set and return nullptr if a block is
visited again.

Fixes #62830.

Diff Detail

Event Timeline

fhahn created this revision.May 22 2023, 3:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 3:37 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
fhahn requested review of this revision.May 22 2023, 3:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 3:37 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rjmccall accepted this revision.May 24 2023, 11:45 AM

Nice catch.

This revision is now accepted and ready to land.May 24 2023, 11:45 AM