[llvm-commits] [llvm] r60148 - in /llvm/trunk: lib/Transforms/Scalar/JumpThreading.cpp test/Transforms/JumpThreading/thread-loads.ll

Devang Patel dpatel at apple.com
Tue Dec 2 10:23:34 PST 2008


On Nov 26, 2008, at 9:07 PM, Chris Lattner wrote:

> +/// MergeBasicBlockIntoOnlyPred - DestBB is a block with one  
> predecessor and its
> +/// predecessor is known to have one successor (DestBB!).   
> Eliminate the edge
> +/// between them, moving the instructions in the predecessor into  
> DestBB and
> +/// deleting the predecessor block.
> +///
> +/// FIXME: Move to TransformUtils to share with simplifycfg and  
> codegenprepare.

BasicBlockUtils.h:MergeBlockIntoPredecessor() is already available.

-
Devang




More information about the llvm-commits mailing list