Skip to content
  • Evan Cheng's avatar
    Joining a live interval of a physical register with a virtual one can turn out · 7b2a0016
    Evan Cheng authored
    to be really bad. Once they are joined they are not broken apart. Also, physical
    intervals cannot be spilled!
    
    Added a heuristic as a workaround for this. Be careful coalescing with a
    physical register if the virtual register uses are "far". Check if there are
    uses in the same loop as the source (copy instruction). Check if it is in the
    loop preheader, etc.
    
    llvm-svn: 35134
    7b2a0016
Loading