Skip to content
  • Matt Arsenault's avatar
    DAG: Tolerate non-MemSDNodes for OPC_RecordMemRef · d60951f4
    Matt Arsenault authored
    When intrinsics are allowed to have mem operands, there
    are two ways this can happen. First is an intrinsic
    that is marked has having a mem operand, but is not handled
    by getTgtMemIntrinsic.
    
    The second way can occur even for intrinsics which do not
    have a mem operand. It seems the selector table does
    some kind of sorting based on the opcode, and the
    mem ref recording can happen in the same scope for
    intrinsics that both do and do not have mem refs.
    I haven't been able to figure out exactly why this happens
    (although it happens even with the matcher optimizations disabled).
    I'm not sure if it's worth trying to avoid hitting this for
    these nodes since I think it's still reasonable to handle
    this in case getTgtMemIntrinic is not implemented.
    
    llvm-svn: 321208
    d60951f4
Loading