[PATCH] Allow blocks to be merged when one has an undef input to a phi.

Mark Lacey mark.lacey at apple.com
Wed Jun 5 16:24:10 PDT 2013


Can someone please review, and commit if everything looks good?

Thanks,

Mark

Description:
    Allow blocks to be merged when one has an undef input to a phi.
    
    TryToSimplifyUncondBranchFromEmptyBlock was checking that any common
    predecessors of the two blocks it is attempting to merge supply the
    same incoming values to any phi in the successor block. This change
    allows merging in the case where there is one or more incoming values
    that are undef. The undef values are rewritten to match the non-undef
    value that flows from the other edge.
    
    <rdar://problem/12801861>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-blocks-to-be-merged-when-one-has-an-undef-inpu.patch
Type: application/octet-stream
Size: 7145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130605/492ba6bf/attachment.obj>


More information about the llvm-commits mailing list