Optimize all cases of "icmp (X+Cst), X" to something simpler. This triggers
authorChris Lattner <sabre@nondot.org>
Mon, 21 Dec 2009 03:19:28 +0000 (03:19 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Dec 2009 03:19:28 +0000 (03:19 +0000)
commit2799bafb98676c000388f8636d58064f2646266e
tree9ba0bfe171b9b6062d14e2b0573a1802e8687247
parent6b57a797ab8b82e72b92e772a56b3363cac9d796
Optimize all cases of "icmp (X+Cst), X" to something simpler.  This triggers
a bunch in lencode, ldecod, spass, 176.gcc, 252.eon, among others.  It is
also the first part of PR5822

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