Skip to content
  • Adrian Prantl's avatar
    Implement salavageDebugInfo functionality for SelectionDAG. · 2eb7cbf9
    Adrian Prantl authored
    Similar to how llvm::salvagDebugInfo hooks into InstCombine, this adds
    a hook that can be invoked before an SDNode that is associated with an
    SDDbgValue is erased to capture the effect of the deleted node in a
    DIExpression.
    
    The motivating example is an SDDebugValue attached to an ADD operation
    that gets folded into a LOAD+OFFSET operation.
    
    rdar://problem/32121503
    
    llvm-svn: 316525
    2eb7cbf9
Loading