[PATCH] D29153: [BranchFolding] Tail common all identical unreachable blocks

Kyle Butt via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 15:04:49 PST 2017


iteratee added inline comments.


================
Comment at: lib/CodeGen/BranchFolding.cpp:521
+static bool blockEndsInUnreachable(const MachineBasicBlock *MBB) {
+  return MBB->succ_empty() && !MBB->isReturnBlock();
+}
----------------
Unforturnately there are platforms where this isn't sufficient. I believe ARM is one of them.


https://reviews.llvm.org/D29153





More information about the llvm-commits mailing list