Skip to content
  • Bill Wendling's avatar
    Don't try to move a MBB into the fall-through position if it's a landing pad or · b87b9925
    Bill Wendling authored
    branches only to a landing pad. Without this check, the compiler would go into
    an infinite loop because the branch to a landing pad is an "abnormal" edge which
    wasn't being taken into account.
    
    This is the meat of that fix:
    
      if (!PrevBB.canFallThrough() && !MBB->BranchesToLandingPad(MBB)) {
    
    The other stuff is simplification of the "branches to a landing pad" code.
    
    llvm-svn: 91161
    b87b9925
Loading