Skip to content
  • Chris Lattner's avatar
    Only insert FP_REG_KILL instructions in MachineBasicBlocks that actually · cdd56634
    Chris Lattner authored
    use FP instructions.  This reduces the number of instructions inserted in
    176.gcc (for example) from 58074 to 101 (it doesn't use much FP, which
    is typical).  This reduction speeds up the entire code generator.  In the
    case of 176.gcc, llc went from taking 31.38s to 24.78s.  The passes that
    sped up the most are the register allocator and the 2 live variable analysis
    passes, which sped up 2.3, 1.3, and 1.5s respectively.  The asmprinter
    pass also sped up because it doesn't print the instructions in comments :)
    
    Note that this patch is likely to expose latent bugs in machine code passes,
    because now basicblock can be empty, where they were never empty before.  I
    cleaned out regalloclocal, but who knows about linscan :)
    
    llvm-svn: 11717
    cdd56634
Loading