Skip to content
  • Andrew Trick's avatar
    Clear virtual registers after they are no longer referenced. · da84e646
    Andrew Trick authored
    Passes after RegAlloc should be able to rely on MRI->getNumVirtRegs() == 0.
    This makes sharing code for pre/postRA passes more robust.
    Now, to check if a pass is running before the RA pipeline begins, use MRI->isSSA().
    To check if a pass is running after the RA pipeline ends, use !MRI->getNumVirtRegs().
    
    PEI resets virtual regs when it's done scavenging.
    
    PTX will either have to provide its own PEI pass or assign physregs.
    
    llvm-svn: 151032
    da84e646
Loading