[llvm-commits] [llvm] r140168 - /llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp

Duncan Sands baldrick at free.fr
Wed Sep 21 01:43:57 PDT 2011


Hi Bill,

> --- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
> +++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Tue Sep 20 13:42:07 2011
> @@ -754,9 +754,13 @@
>     return newFunction;
>   }
>
> -bool CodeExtractor::isEligible(const std::vector<BasicBlock*>  &code) {
> +bool CodeExtractor::isEligible(ArrayRef<BasicBlock*>  code) {
> +  // Deny a single basic block that's a landing pad block.
> +  if (code.size() == 1&&  code[0]->isLandingPad())
> +    return false;

does this mean that you can remove the "isLandingPad" check you previously added
somewhere else in this file?

Ciao, Duncan.



More information about the llvm-commits mailing list