From b7986e9efa389990b1795b47cbf480df1b77fe19 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 14 May 2011 17:21:39 +0000 Subject: [PATCH] Ooops. Accidentally left the bit that actually did the optimisation commented out. --- opts/IMPCacher.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/opts/IMPCacher.cpp b/opts/IMPCacher.cpp index 527e44f..bd699ac 100644 --- a/opts/IMPCacher.cpp +++ b/opts/IMPCacher.cpp @@ -93,18 +93,15 @@ void GNUstep::IMPCacher::CacheLookup(Instruction *lookup, Value *slot, Value lookupBB->getParent()); // Don't store the cached lookup if we are doing forwarding tricks. - B.CreateBr(storeCacheBB); - /* B.CreateCondBr(B.CreateICmpEQ(receiver, newReceiver), storeCacheBB, afterLookupBB); - */ B.SetInsertPoint(storeCacheBB); // Store it even if the version is 0, because we always check that the // version is not 0 at the start and an occasional redundant store is // probably better than a branch every time. B.CreateStore(lookup, slot); - //B.CreateStore(B.CreateLoad(B.CreateStructGEP(lookup, 3)), version); + B.CreateStore(B.CreateLoad(B.CreateStructGEP(lookup, 3)), version); cls = B.CreateLoad(B.CreateBitCast(receiver, IdTy)); B.CreateStore(cls, B.CreateStructGEP(lookup, 1)); B.CreateBr(afterLookupBB);