Implement some basic simplifications involving min/max, for example
authorDuncan Sands <baldrick@free.fr>
Tue, 3 May 2011 19:53:10 +0000 (19:53 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 3 May 2011 19:53:10 +0000 (19:53 +0000)
commitad20681cdeaf72383891b153b925624aa585be4d
tree3e0b841ad95806d14172431135c47fbfed5f94f0
parentb9d5af05fdc0867ed772c4bbfe3f3acc9fb3d628
Implement some basic simplifications involving min/max, for example
max(a,b) >= a -> true.  According to my super-optimizer, these are
by far the most common simplifications (of the -instsimplify kind)
that occur in the testsuite and aren't caught by -std-compile-opts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130780 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/PatternMatch.h
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/maxmin.ll [new file with mode: 0644]