[MergeICmps] Make base ordering really deterministic.
authorClement Courbet <courbet@google.com>
Fri, 15 Feb 2019 14:17:17 +0000 (14:17 +0000)
committerClement Courbet <courbet@google.com>
Fri, 15 Feb 2019 14:17:17 +0000 (14:17 +0000)
commitf7e84a2ccc4b8324785c094691e3611a854f74b9
tree3d554f2d68a7a0276f46169234cc7bf59e663bd2
parentcc004df7ebdbe2159f173eae1558e7d29f2cb56d
[MergeICmps] Make base ordering really deterministic.

Summary:
The idea is that we now manipulate bases through a `unsigned BaseID` based on
order of appearance in the comparison chain rather than through the `Value*`.

Fixes 40714.

Reviewers: gchatelet

Subscribers: mgrang, jfb, jdoerfert, llvm-commits, hans

Tags: #llvm

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

llvm-svn: 354131
llvm/lib/Transforms/Scalar/MergeICmps.cpp