[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jul 11 17:32:00 PDT 2006



Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.68 -> 1.69
---
Log message:

Remove non-portable optimization that isn't worth it


---
Diffs of the changes:  (+1 -5)

 JIT.cpp |    6 +-----
 1 files changed, 1 insertion(+), 5 deletions(-)


Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.68 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.69
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.68	Fri Jul  7 12:18:09 2006
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Tue Jul 11 19:31:47 2006
@@ -309,11 +309,7 @@
       // space.
       Ptr = malloc(S+A);
       unsigned MisAligned = ((intptr_t)Ptr & (A-1));
-      unsigned Offset = MisAligned ? (A-MisAligned) : 0;
-      
-      // Trim the tail off the memory block.
-      realloc(Ptr, S+Offset);
-      Ptr = (char*)Ptr + Offset;
+      Ptr = (char*)Ptr + (MisAligned ? (A-MisAligned) : 0);
     }
     state.getPendingGlobals(locked).push_back(GV);
   }






More information about the llvm-commits mailing list