Skip to content
  • Owen Anderson's avatar
    Fix PR8247: JumpThreading can cause a block to become unreachable while still... · 99c985c3
    Owen Anderson authored
    Fix PR8247: JumpThreading can cause a block to become unreachable while still having predecessor, if it is part of a self-loop.
    Because of this, we cannot use the Simplify* APIs, as they can assert-fail on unreachable code.  Since it's not easy to determine
    if a given threading will cause a block to become unreachable, simply defer simplifying simplification to later InstCombine and/or
    DCE passes.
    
    llvm-svn: 115082
    99c985c3
Loading