This is an archive of the discontinued LLVM Phabricator instance.

[NFC][LoopFusion] Use isControlFlowEquivalent() from CodeMoverUtils.
ClosedPublic

Authored by Whitney on Nov 22 2019, 2:23 PM.

Diff Detail

Event Timeline

Whitney created this revision.Nov 22 2019, 2:23 PM
Meinersbur accepted this revision.Nov 22 2019, 8:33 PM
Meinersbur added inline comments.
llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
42

[suggestion] Add a shortcut:

if (&BB0 == &BB1)
  return true;
This revision is now accepted and ready to land.Nov 22 2019, 8:33 PM
Whitney marked 2 inline comments as done.Nov 25 2019, 9:53 AM
Whitney added inline comments.
llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
42

Done the change when commit.

kbarton accepted this revision.Nov 27 2019, 7:27 AM

LGTM.

Whitney closed this revision.Nov 27 2019, 8:22 AM
Whitney marked an inline comment as done.

landed

For reference: landed as aaf7f05a96e6c21b7a6d1ad9e73fb7ab5eee7d83

Phabricator didn't recognize it because the Differential Revision: line wasn't its own paragraph.