[MergeICmps] Make sure that the comparison only has one use.
authorClement Courbet <courbet@google.com>
Tue, 13 Mar 2018 07:05:55 +0000 (07:05 +0000)
committerClement Courbet <courbet@google.com>
Tue, 13 Mar 2018 07:05:55 +0000 (07:05 +0000)
commit9f0b3170bcea739ce54af7cc2819cc3287c123d0
treeac7b00a04b1a60066d1b05ef588cb94a3e1c6989
parent82bf8bcb4facac36b18208f96b9f99c6f1af9f19
[MergeICmps] Make sure that the comparison only has one use.

Summary: Fixes PR36557.

Reviewers: trentxintong, spatel

Subscribers: mstorsjo, llvm-commits

Differential Revision: https://reviews.llvm.org/D44083

llvm-svn: 327372
llvm/lib/Transforms/Scalar/MergeICmps.cpp
llvm/test/Transforms/MergeICmps/X86/pr36557.ll [new file with mode: 0644]