From d1643e41ef242ae656f667bf3c8b0324635cefd3 Mon Sep 17 00:00:00 2001 From: buzbee Date: Wed, 5 Sep 2012 14:06:51 -0700 Subject: Basic block combine pass Combine basic blocks terminated by instruction that we have since proven not to throw. This change is intended to relieve some of the computational load for llvm by reducing the number of basic blocks it has to contend with. Also: Add stats to show how successful check elimination is. Restore mechanism to disable some expensive optimization passes when compiling large methods. Change-Id: I7fae22160988cbefb90ea9fb1cc26d7364e8d229 --- src/compiler/IntermediateRep.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/IntermediateRep.cc') diff --git a/src/compiler/IntermediateRep.cc b/src/compiler/IntermediateRep.cc index 237f5e0469..031d3d379c 100644 --- a/src/compiler/IntermediateRep.cc +++ b/src/compiler/IntermediateRep.cc @@ -77,6 +77,7 @@ BasicBlock* oatNewBB(CompilationUnit* cUnit, BBType blockType, int blockId) oatInitGrowableList(cUnit, bb->predecessors, (blockType == kExitBlock) ? 2048 : 2, kListPredecessors); + cUnit->blockIdMap.Put(blockId, blockId); return bb; } -- cgit v1.2.3-59-g8ed1b