[llvm-commits] [llvm] r140168 - /llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Bill Wendling
wendling at apple.com
Wed Sep 21 15:43:19 PDT 2011
On Sep 21, 2011, at 1:43 AM, Duncan Sands wrote:
> 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?
>
Hi Duncan,
I'd reverted that patch because it broke things. So, 'yes'. ;-)
-bw
More information about the llvm-commits
mailing list