diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-08-22 02:42:55 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-08-22 02:42:55 +0000 |
| commit | 978de6b56a4eb4d3dbc1b65f2b095a192b240f90 (patch) | |
| tree | a91ec212c4661c53073945efccf730f281faa78a /lib/Transforms/Vectorize/LoopVectorize.cpp | |
| parent | 9d3c398d61c749a0d8ab7c5c127d661cd5ac1db2 (diff) | |
| download | llvm-978de6b56a4eb4d3dbc1b65f2b095a192b240f90.tar.gz llvm-978de6b56a4eb4d3dbc1b65f2b095a192b240f90.tar.bz2 llvm-978de6b56a4eb4d3dbc1b65f2b095a192b240f90.tar.xz | |
Teach LoopVectorize about address space sizes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
| -rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index a7026f68a2..380c309b92 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2667,7 +2667,8 @@ bool LoopVectorizationLegality::canVectorize() { static Type *convertPointerToIntegerType(DataLayout &DL, Type *Ty) { if (Ty->isPointerTy()) - return DL.getIntPtrType(Ty->getContext()); + return DL.getIntPtrType(Ty); + return Ty; } |
