From 85d8c1ef43adec4f57c5ce372ef7816d13c98420 Mon Sep 17 00:00:00 2001 From: buzbee Date: Fri, 27 Jan 2012 15:52:35 -0800 Subject: Minor compiler tuning Large switch statements were getting bogged down in a linear search. Added a map for fast lookup (which may also be useful for debug support). Change-Id: I00e5956ea7e98ff2c870fb2d3e299e8d4c88f598 --- src/compiler/CompilerIR.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/CompilerIR.h') diff --git a/src/compiler/CompilerIR.h b/src/compiler/CompilerIR.h index 76649d5980..1eb6c6472e 100644 --- a/src/compiler/CompilerIR.h +++ b/src/compiler/CompilerIR.h @@ -331,6 +331,7 @@ typedef struct CompilationUnit { bool usesFP; // Method contains at least 1 non-move FP operation bool disableDataflow; // Skip dataflow analysis if possible std::map blockMap; // findBlock lookup cache + std::map boundaryMap; // boundary lookup cache } CompilationUnit; BasicBlock* oatNewBB(BBType blockType, int blockId); -- cgit v1.2.3-59-g8ed1b