[llvm-commits] [PATCH] [msan] Remove unreachable bb's

Kostya Serebryany kcc at google.com
Tue Dec 18 03:42:41 PST 2012


  Looks good
  (OTOH, the previous version looked good too).
  Now this code does not affect anyone but msan.


================
Comment at: lib/Transforms/Utils/Local.cpp:970
@@ +969,3 @@
+/// function's entry.
+void llvm::removeUnreachableBlocks(Function &F) {
+  SmallPtrSet<BasicBlock*, 128> Reachable;
----------------
Maybe make it return the number of removed BBs? 


http://llvm-reviews.chandlerc.com/D208



More information about the llvm-commits mailing list