Teach ConstantFolding about pointer address spaces
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 20 Aug 2013 21:20:04 +0000 (21:20 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 20 Aug 2013 21:20:04 +0000 (21:20 +0000)
commit80f495aab0b1103b880196191af56f1d1c473ea1
treedabcbe9cbaab2df3ce8474218c6fc56bdd6382e7
parenta98a486ad194c38293efcc5359d6ed2493f950dc
Teach ConstantFolding about pointer address spaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188831 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Other/constant-fold-gep-address-spaces.ll [new file with mode: 0644]
test/Transforms/ConstProp/loads.ll
test/Transforms/InstCombine/constant-fold-address-space-pointer.ll [new file with mode: 0644]
test/Transforms/InstCombine/getelementptr.ll