reimplement GetPointerBaseWithConstantOffset().
authorNuno Lopes <nunoplopes@sapo.pt>
Mon, 31 Dec 2012 20:48:35 +0000 (20:48 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Mon, 31 Dec 2012 20:48:35 +0000 (20:48 +0000)
commit5cec34754d540faac87fc0173fce42005c76b7d9
treed887758f932b50ad3a121d59489144f04b2cc803
parent0a9ff4cab3a3fc1179c37855717a54ae44a5312e
reimplement GetPointerBaseWithConstantOffset().
The new code is an improved copy of the code I deleted from Analysis/Loads.cpp.
One less compute-constant-gep-offset implementation. yay :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171326 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp