Skip to content
  • Dan Gohman's avatar
    Rewrite the SDep class, and simplify some of the related code. · 2d170896
    Dan Gohman authored
    The Cost field is removed. It was only being used in a very limited way,
    to indicate when the scheduler should attempt to protect a live register,
    and it isn't really needed to do that. If we ever want the scheduler to
    start inserting copies in non-prohibitive situations, we'll have to
    rethink some things anyway.
    
    A Latency field is added. Instead of giving each node a single
    fixed latency, each edge can have its own latency. This will eventually
    be used to model various micro-architecture properties more accurately.
    
    The PointerIntPair class and an internal union are now used, which
    reduce the overall size.
    
    llvm-svn: 60806
    2d170896
Loading