Skip to content
  • Bill Wendling's avatar
    Branch folding is folding a landing pad into a regular BB. · c14d7322
    Bill Wendling authored
    An exception is thrown via a call to _cxa_throw, which we don't expect to
    return. Therefore, the "true" part of the invoke goes to a BB that has
    'unreachable' as its only instruction. This is lowered into an empty MachineBB.
    The landing pad for this invoke, however, is directly after the "true" MBB.
    When the empty MBB is removed, the landing pad is directly below the BB with the
    invoke call. The unconditional branch is removed and then the two blocks are
    merged together.
    
    The testcase is too big for a regression test.
    <rdar://problem/9305728>
    
    llvm-svn: 129965
    c14d7322
Loading