[SCEV] Fix PR36974.
authorSerguei Katkov <serguei.katkov@azul.com>
Tue, 3 Apr 2018 07:29:00 +0000 (07:29 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Tue, 3 Apr 2018 07:29:00 +0000 (07:29 +0000)
commit2ace8dc1c334b8be5a02a27d2970ce0dae163a19
tree2624318f40590f40289a55f6a80738b5455d3997
parentb0c403d7aef0cf232563b83d5773c589d859e057
[SCEV] Fix PR36974.

The patch changes the usage of dominate to properlyDominate
to satisfy the condition !(a < a) while using std::max.

It is actually NFC due to set data structure is used to keep
the Loops and no two identical loops can be in collection.
So in reality there is no difference between usage of
dominate and properlyDominate in this particular case.
However it might be changed so it is better to fix it.

llvm-svn: 329051
llvm/lib/Analysis/ScalarEvolution.cpp