When constant folding GEP expressions, keep the address space information of pointers.
authorNadav Rotem <nadav.rotem@intel.com>
Mon, 30 Jul 2012 07:25:20 +0000 (07:25 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Mon, 30 Jul 2012 07:25:20 +0000 (07:25 +0000)
commit97baaeaeb22e7336590b8745bd181425ca410cb5
tree16ea5ef3999bc25f30f31e696ecd683e5c5310eb
parent818f6094591f18ee2cb19c4a09bec98443b8caac
When constant folding GEP expressions, keep the address space information of pointers.

Together with Ran Chachick <ran.chachick@intel.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160954 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/2012-07-30-addrsp-bitcast.ll [new file with mode: 0644]