Skip to content
  • Jakob Stoklund Olesen's avatar
    Reintroduce VirtRegRewriter. · 1224312f
    Jakob Stoklund Olesen authored
    OK, not really. We don't want to reintroduce the old rewriter hacks.
    
    This patch extracts virtual register rewriting as a separate pass that
    runs after the register allocator. This is possible now that
    CodeGen/Passes.cpp can configure the full optimizing register allocator
    pipeline.
    
    The rewriter pass uses register assignments in VirtRegMap to rewrite
    virtual registers to physical registers, and it inserts kill flags based
    on live intervals.
    
    These finalization steps are the same for the optimizing register
    allocators: RABasic, RAGreedy, and PBQP.
    
    llvm-svn: 158244
    1224312f
Loading