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 | f599d97449cba4df8b3102bef46cf79f2d70cea2 (patch) | |
tree | 4227ebe634fa768d01671e5bb3348c5fb2bbe64e /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | dbca225589b111837eca921dfa493627b341f271 (diff) | |
download | bcm5719-llvm-f599d97449cba4df8b3102bef46cf79f2d70cea2.tar.gz bcm5719-llvm-f599d97449cba4df8b3102bef46cf79f2d70cea2.zip |
Teach LoopVectorize about address space sizes
llvm-svn: 188980
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index a7026f68a2c..380c309b924 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/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; } |