]> granicus.if.org Git - llvm/commit
Replace three "strip & accumulate" implementations with a single one
authorJohannes Doerfert <jdoerfert@anl.gov>
Thu, 11 Jul 2019 01:14:48 +0000 (01:14 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Thu, 11 Jul 2019 01:14:48 +0000 (01:14 +0000)
commit0e9ef83946b3d2e9a5a605b91a2523ef08f66502
treee335d7e9083566c69fbcd419b0b99791e77d5bcd
parent4e331dcefb1daa2535f579b6eafdecfe22ebd15c
Replace three "strip & accumulate" implementations with a single one

This patch replaces the three almost identical "strip & accumulate"
implementations for constant pointer offsets with a single one,
combining the respective functionalities. The old interfaces are kept
for now.

Differential Revision: https://reviews.llvm.org/D64468

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365723 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ValueTracking.h
include/llvm/IR/Value.h
lib/Analysis/InstructionSimplify.cpp
lib/Analysis/ValueTracking.cpp
lib/IR/Value.cpp
test/Transforms/InstCombine/gep-addrspace.ll