This is an archive of the discontinued LLVM Phabricator instance.

[LoopInfo] Allow cloning of callbr
ClosedPublic

Authored by nikic on Jul 18 2022, 2:46 AM.

Details

Summary

After D129288, callbr is safe to clone without special handling. This permits optimizations like loop unroll and loop unswitch on loops containing callbrs.

Fixes https://github.com/llvm/llvm-project/issues/41834.

Diff Detail

Event Timeline

nikic created this revision.Jul 18 2022, 2:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 2:46 AM
nikic requested review of this revision.Jul 18 2022, 2:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 2:46 AM
nikic edited the summary of this revision. (Show Details)Jul 18 2022, 3:33 AM
nickdesaulniers accepted this revision.Jul 18 2022, 10:33 AM

Thanks for fixing this up!

This revision is now accepted and ready to land.Jul 18 2022, 10:33 AM
This revision was landed with ongoing or failed builds.Jul 19 2022, 12:57 AM
This revision was automatically updated to reflect the committed changes.