[PATCH] Kill some duplicated code for removing unreachable BBs.

Peter Collingbourne peter at pcc.me.uk
Thu Aug 8 16:21:52 PDT 2013


Hi eugenis,

This moves removeUnreachableBlocksFromFn from SimplifyCFGPass.cpp
to Utils/Local.cpp and uses it to replace the implementation of
llvm::removeUnreachableBlocks, which appears to do a strict subset
of what removeUnreachableBlocksFromFn does.

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

Files:
  lib/Transforms/Scalar/SimplifyCFGPass.cpp
  lib/Transforms/Utils/Local.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1334.1.patch
Type: text/x-patch
Size: 14547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130808/0b186284/attachment.bin>


More information about the llvm-commits mailing list