[llvm-commits] [llvm] r81928 - /llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp

Eric Christopher echristo at apple.com
Wed Sep 16 01:09:49 PDT 2009


Howdy Duncan,

>
>> /// NormalizeLandingPads - Normalize and discover landing pads,  
>> noting them
>> /// in the LandingPads set.  A landing pad is normal if the only  
>> CFG edges
>> -/// that end at it are unwind edges from invoke instructions.
>> +/// that end at it are unwind edges from invoke instructions. If  
>> we inlined
>> +/// through an invoke we could have a normal branch from the  
>> previous
>> +/// unwind block through to the landing pad for the original invoke.
>
> not sure how this is possible, got an example?  In practice I only  
> ever
> saw abnormal landing pads due to critical edge splitting.

With the change to using the unwind inst i'll create one every time  
you inline something with an unwind afaict since it turns the unwind  
into a branch to the invoke's landing pad.

-eric



More information about the llvm-commits mailing list