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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Aug 9 08:18:09 PDT 2013


Can you add a test showing the new powers of removeUnreachableBlocks?
Looks like MemorySanitizer runs it, so you can probably use that to
write the test.

On 8 August 2013 19:21, Peter Collingbourne <peter at pcc.me.uk> wrote:
> 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
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list