When transforming &A[i] < &A[j] -> i < j, make sure to perform the comparison
authorChris Lattner <sabre@nondot.org>
Mon, 18 Jul 2005 23:07:33 +0000 (23:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 18 Jul 2005 23:07:33 +0000 (23:07 +0000)
commit7911f036266fc9cd63534b9bb225523d021bab7c
tree10f5f66d916f07c43ec6d042af1192b0111d36ce
parentf4d32726e622c740b4befc803e604903eb1349df
When transforming &A[i] < &A[j]  ->  i < j, make sure to perform the comparison
as a signed compare.  This patch may fix PR597, but is correct in any case.

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