Skip to content
  • Jakob Stoklund Olesen's avatar
    Simplify LiveDebugVariables by storing MachineOperand copies locations instead · 9adf5e09
    Jakob Stoklund Olesen authored
    of using a Location class with the same information.
    
    When making a copy of a MachineOperand that was already stored in a
    MachineInstr, it is necessary to clear the parent pointer on the copy. Otherwise
    the register use-def lists become inconsistent.
    
    Add MachineOperand::clearParent() to do that. An alternative would be a custom
    MachineOperand copy constructor that cleared ParentMI. I didn't want to do that
    because of the performance impact.
    
    llvm-svn: 123109
    9adf5e09
Loading