[llvm-commits] CVS: llvm/lib/Reoptimizer/TraceCache/MemoryManager2.cpp
Anand Shukla
ashukla at cs.uiuc.edu
Sat May 31 21:35:12 PDT 2003
Changes in directory llvm/lib/Reoptimizer/TraceCache:
MemoryManager2.cpp updated: 1.2 -> 1.3
---
Log message:
Simple additions to the runtime API
---
Diffs of the changes:
Index: llvm/lib/Reoptimizer/TraceCache/MemoryManager2.cpp
diff -u llvm/lib/Reoptimizer/TraceCache/MemoryManager2.cpp:1.2 llvm/lib/Reoptimizer/TraceCache/MemoryManager2.cpp:1.3
--- llvm/lib/Reoptimizer/TraceCache/MemoryManager2.cpp:1.2 Wed Feb 19 13:19:17 2003
+++ llvm/lib/Reoptimizer/TraceCache/MemoryManager2.cpp Sat May 31 21:32:59 2003
@@ -32,7 +32,13 @@
int dummyFunction2(int i); //the function that provides memory!
MemoryManager2::MemoryManager2(){
- memStart = (uint64_t)(intptr_t)&dummyFunction2;
+ uint64_t memAlign = (uint64_t)(intptr_t)&dummyFunction2;
+ if(memAlign % 32){
+ memAlign -= (memAlign % 32);
+ memAlign += 32;
+ }
+
+ memStart = memAlign;
memEnd = (uint64_t)(intptr_t)&dummyFunction2+globalMemSize2*4;
//std::cerr<<"Dummy address :"<<(void *)memStart<<"\n";
freeMemList.push_back(std::make_pair(memStart, memEnd));
More information about the llvm-commits
mailing list