[PATCH] D53876: Preserve loop metadata when splitting exit blocks

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 11:12:11 PDT 2019


craig.topper added inline comments.


================
Comment at: lib/Transforms/Utils/LoopUtils.cpp:78
+        // Switch-like insts may have duplicate edges.
+        if (!PushedBlocks.count(PredBB)) {
+          InLoopPredecessors.push_back(PredBB);
----------------
Can we use 'if (PushBlocks.insert(PredBB).second)'


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53876/new/

https://reviews.llvm.org/D53876





More information about the llvm-commits mailing list