Skip to content
  • Jakob Stoklund Olesen's avatar
    Add value numbers when spilling dead defs. · 7fb5632e
    Jakob Stoklund Olesen authored
    When spilling around an instruction with a dead def, remember to add a
    value number for the def.
    
    The missing value number wouldn't normally create problems since there
    would be an incoming live range as well.  However, due to another bug
    we could spill a dead V_SET0 instruction which doesn't read any values.
    
    The missing value number caused an empty live range to be created which
    is dangerous since it doesn't interfere with anything.
    
    This fixes part of PR11125.
    
    llvm-svn: 141923
    7fb5632e
Loading