This patch tries to fix issue.
If two FusionCandidates are in same level of dominator tree then, they will not be dominates each other. But they are control flow equivalent. To sort those FusionCandidates nonStrictlyPostDominate check is needed.
Differential D139993
[LoopFusion] Sorting of undominated FusionCandidates crashes ram-NK on Dec 13 2022, 8:41 PM. Authored by
Details This patch tries to fix issue. If two FusionCandidates are in same level of dominator tree then, they will not be dominates each other. But they are control flow equivalent. To sort those FusionCandidates nonStrictlyPostDominate check is needed.
Diff Detail Event Timeline
Comment Actions Comments are updated. @fhahn This test cases will not fuse the loops. But this type of FusionCandidates will not allow to proceed the loop fusion. Comment Actions
Corrected the IR with generated IR. Loops in the test IR will not fuse. Before, loops are not fused because of crash. Now the loops are not fused based on the proper profitable check.
|
this comment needs to be updated