This is an archive of the discontinued LLVM Phabricator instance.

[LoopFusion] Update second loop guard non loop successor phis incoming blocks.
ClosedPublic

Authored by Whitney on Jun 8 2020, 12:35 PM.

Details

Summary

The current LoopFusion forget to update the incoming block of the phis in second loop guard non loop successor from second loop guard block to first loop guard block. A test case is provided to better understand the problem.

Diff Detail

Event Timeline

Whitney created this revision.Jun 8 2020, 12:35 PM
jdoerfert accepted this revision.Jun 8 2020, 4:55 PM

LGTM.

This revision is now accepted and ready to land.Jun 8 2020, 4:55 PM
This revision was automatically updated to reflect the committed changes.