[PATCH] D22317: Codegen: Tail Merge: Be less aggressive with special cases.

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 15:37:05 PDT 2016


davidxl added inline comments.

================
Comment at: lib/CodeGen/BranchFolding.cpp:621
@@ -621,1 +620,3 @@
+  // when SuccBB is the only successor.
+  if ((MBB1 == PredBB || MBB2 == PredBB) && MBB1->succ_size() == 1) {
     MachineBasicBlock::iterator I;
----------------
This looks fine but should it be done only in layout mode?


Repository:
  rL LLVM

http://reviews.llvm.org/D22317





More information about the llvm-commits mailing list