The comparision "max(x,y)==x" is equivalent to "x>=y". Since the max is
authorDuncan Sands <baldrick@free.fr>
Sat, 7 May 2011 16:56:49 +0000 (16:56 +0000)
committerDuncan Sands <baldrick@free.fr>
Sat, 7 May 2011 16:56:49 +0000 (16:56 +0000)
commite864b5b840c58d0b04324082ec94a7156743ed60
tree1d8ae61330d769dd7d15b315a9571284838c91df
parent33c110e602bbdfee23cfb58fddef246a262647ab
The comparision "max(x,y)==x" is equivalent to "x>=y".  Since the max is
often expressed as "x >= y ? x : y", there is a good chance we can extract
the existing "x >= y" from it and use that as a replacement for "max(x,y)==x".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/maxmin.ll