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.
Paths
| Differential D151076
[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 Fixes #62830.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 24 2023, 11:45 AM Closed by commit rGf0687b47a0ce: [IRGen] Handle infinite cycles in findDominatingStoreToReturnValue. (authored by fhahn). · Explain WhyMay 24 2023, 12:17 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 524218 clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGen/dominating-store-infinite-cycle.c
|