OSDN Git Service

[MergeICmps] Handle chains with several complex BCE basic blocks.
authorClement Courbet <courbet@google.com>
Tue, 6 Feb 2018 12:25:33 +0000 (12:25 +0000)
committerClement Courbet <courbet@google.com>
Tue, 6 Feb 2018 12:25:33 +0000 (12:25 +0000)
commitbed04b64f4ab96f7ae2a59416c40d4abb18457f9
tree0eea958d418fe410515d2fe94c71fa2a81a86277
parentf53fdc23081ae862e566db9e08a68e0641b8c5eb
[MergeICmps] Handle chains with several complex BCE basic blocks.

 - Fix condition for detecting that a complex basic block was the first in
   the chain.
 - Add tests.

This was caught by buildbots when submitting rL324319.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324341 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MergeICmps.cpp
test/Transforms/MergeICmps/X86/two-complex-bb.ll [new file with mode: 0644]