give instcombine some helper functions for matching MIN and MAX, and
authorChris Lattner <sabre@nondot.org>
Mon, 21 Dec 2009 06:03:05 +0000 (06:03 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Dec 2009 06:03:05 +0000 (06:03 +0000)
commitb109b5c148ff60ea8f1105aadb2c31761ca3d445
treecb57a775835e875b99eea863160b22b8f87effa7
parenta278d4a1f72efc8cadf7e96ef1b66b481a903749
give instcombine some helper functions for matching MIN and MAX, and
implement some optimizations for MIN(MIN()) and MAX(MAX()) and
MIN(MAX()) etc.  This substantially improves the code in PR5822 but
doesn't kick in much elsewhere.  2 max's were optimized in
pairlocalalign and one in smg2000.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91814 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/select.ll