Skip to content
  • Jakob Stoklund Olesen's avatar
    Fix PR10046 by updating LiveVariables kill info when splitting live ranges. · dd6fcc4e
    Jakob Stoklund Olesen authored
    This only affects targets like Mips where branch instructions may kill virtual
    registers. Most other targets branch on flag values, so virtual registers are
    not involved.
    
    The problem is that MachineBasicBlock::updateTerminator deletes branches and
    inserts new ones while LiveVariables keeps a list of pointers to instructions
    that kill virtual registers. That list wasn't properly updated in
    MBB::SplitCriticalEdge.
    
    llvm-svn: 132298
    dd6fcc4e
Loading