Skip to content
  • Chris Lattner's avatar
    Two bug fixes: · 2f687fd9
    Chris Lattner authored
     1. Actually increment the Statistic for the GV elim optzn
     2. When resolving undef branches, only resolve branches in executable blocks,
        avoiding marking a bunch of completely dead blocks live.  This has a big
        impact on the quality of the generated code.
    
    With this patch, we positively rip up vortex, compiling Ut_MoveBytes to a
    single memcpy call. In vortex we get this:
    
         12 ipsccp           - Number of globals found to be constant
        986 ipsccp           - Number of arguments constant propagated
       1378 ipsccp           - Number of basic blocks unreachable
       8919 ipsccp           - Number of instructions removed
    
    llvm-svn: 18796
    2f687fd9
Loading