Skip to content
  • Chris Lattner's avatar
    Make jump threading substantially more powerful, in the following ways: · 98d89d1b
    Chris Lattner authored
    1. Make it fold blocks separated by an unconditional branch.  This enables
       jump threading to see a broader scope.
    2. Make jump threading able to eliminate locally redundant loads when they
       feed the branch condition of a block.  This frequently occurs due to
       reg2mem running.
    3. Make jump threading able to eliminate *partially redundant* loads when
       they feed the branch condition of a block.  This is common in code with
       lots of loads and stores like C++ code and 255.vortex.
    
    This implements thread-loads.ll and rdar://6402033.
    
    Per the fixme's, several pieces of this should be moved into Transforms/Utils.
    
    llvm-svn: 60148
    98d89d1b
Loading