Skip to content
  • Jakob Stoklund Olesen's avatar
    Allow for loops in LiveIntervals::pruneValue(). · 2f6dfc7d
    Jakob Stoklund Olesen authored
    It is possible that the live range of the value being pruned loops back
    into the kill MBB where the search started. When that happens, make sure
    that the beginning of KillMBB is also pruned.
    
    Instead of starting a DFS at KillMBB and skipping the root of the
    search, start a DFS at each KillMBB successor, and allow the search to
    loop back to KillMBB.
    
    This fixes PR14078.
    
    llvm-svn: 165872
    2f6dfc7d
Loading