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

Chris Lattner clattner at apple.com
Tue Dec 2 10:35:20 PST 2008


On Dec 2, 2008, at 10:23 AM, Devang Patel wrote:

>
> 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.

Yep, I already moved this code there.

-Chris



More information about the llvm-commits mailing list