[polly] r311439 - [ManagedMemoryRewrite] Get size in bytes rather than in bits and dividing by 8.
Siddharth Bhat via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 02:27:41 PDT 2017
Author: bollu
Date: Tue Aug 22 02:27:41 2017
New Revision: 311439
URL: http://llvm.org/viewvc/llvm-project?rev=311439&view=rev
Log:
[ManagedMemoryRewrite] Get size in bytes rather than in bits and dividing by 8.
Modified:
polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp
Modified: polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp?rev=311439&r1=311438&r2=311439&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp (original)
+++ polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp Tue Aug 22 02:27:41 2017
@@ -244,7 +244,7 @@ replaceGlobalArray(Module &M, const Data
BasicBlock *Start = BasicBlock::Create(M.getContext(), "entry", F);
Builder.SetInsertPoint(Start);
- int ArraySizeInt = DL.getTypeAllocSizeInBits(ArrayTy) / 8;
+ const uint64_t ArraySizeInt = DL.getTypeAllocSize(ArrayTy);
Value *ArraySize = Builder.getInt64(ArraySizeInt);
ArraySize->setName("array.size");
More information about the llvm-commits
mailing list