[PATCH] D24044: CodeGen: Tail-duplicate longer blocks that end with indirect branches.

David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 14:49:21 PDT 2016


davidxl added inline comments.

================
Comment at: lib/CodeGen/TailDuplicator.cpp:569
@@ +568,3 @@
+    // branches that occur within a function, so we check for local successors.
+    HasLocalIndirectbr = back.isIndirectBranch() && TailBB.succ_size() != 0;
+  }
----------------
I asked the question before: can you use  back.isIndirectBranch() && !back.isReturn() ?



Repository:
  rL LLVM

https://reviews.llvm.org/D24044





More information about the llvm-commits mailing list