diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-04-11 00:12:58 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-04-11 00:12:58 +0000 |
commit | b3e30c32ce6ac2cc73192df19dfe712e5be0364d (patch) | |
tree | d7b3a3017555ad5e4f75ed11f7e2035b2199655b /polly/lib/CodeGen/IslNodeBuilder.cpp | |
parent | bf80cfe6b62d7fbd2f7d9be2a477fe4f5ad2d125 (diff) | |
download | bcm5719-llvm-b3e30c32ce6ac2cc73192df19dfe712e5be0364d.tar.gz bcm5719-llvm-b3e30c32ce6ac2cc73192df19dfe712e5be0364d.zip |
Update for alloca construction changes
llvm-svn: 299905
Diffstat (limited to 'polly/lib/CodeGen/IslNodeBuilder.cpp')
-rw-r--r-- | polly/lib/CodeGen/IslNodeBuilder.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp index 739d1f7453e..d8a13d82ebd 100644 --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -1212,7 +1212,8 @@ bool IslNodeBuilder::preloadInvariantEquivClass( } BasicBlock *EntryBB = &Builder.GetInsertBlock()->getParent()->getEntryBlock(); - auto *Alloca = new AllocaInst(AccInstTy, AccInst->getName() + ".preload.s2a"); + auto *Alloca = new AllocaInst(AccInstTy, DL.getAllocaAddrSpace(), + AccInst->getName() + ".preload.s2a"); Alloca->insertBefore(&*EntryBB->getFirstInsertionPt()); Builder.CreateStore(PreloadVal, Alloca); ValueMapT PreloadedPointer; @@ -1282,7 +1283,8 @@ void IslNodeBuilder::allocateNewArrays() { auto InstIt = Builder.GetInsertBlock()->getParent()->getEntryBlock().getTerminator(); - auto *CreatedArray = new AllocaInst(NewArrayType, SAI->getName(), &*InstIt); + auto *CreatedArray = new AllocaInst(NewArrayType, DL.getAllocaAddrSpace(), + SAI->getName(), &*InstIt); CreatedArray->setAlignment(PollyTargetFirstLevelCacheLineSize); SAI->setBasePtr(CreatedArray); } |