teach instcombine to optimize pointer difference idioms involving constant
authorChris Lattner <sabre@nondot.org>
Fri, 1 Jan 2010 22:29:12 +0000 (22:29 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Jan 2010 22:29:12 +0000 (22:29 +0000)
commitf2ebc682d1ee008782d44261f28e92bf982790c2
treeb2626bebd963858de49c9c0017afac91d0d102f7
parent33767185055399d729e2a1b2c24d4d36efab125c
teach instcombine to optimize pointer difference idioms involving constant
expressions.  This is a step towards comment #4 in PR3351.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92401 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/PatternMatch.h
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/sub.ll