aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/Optimizer.h
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2009-09-11 13:42:05 -0700
committerBen Cheng <bccheng@google.com>2009-09-11 14:21:58 -0700
commitdcf3e5d43a1831a166f70cb9e0694cd4b0b356b0 (patch)
tree52601ee529a5e21c46759521c5d7ba09b41889f2 /vm/compiler/codegen/Optimizer.h
parentfc869d7f570750b2318d91f1b047e134a74b8e09 (diff)
Model resource usage for each Thumb/Thumb2 instrution.
This is an mid-point checkin to avoid future merge nightmare for the register allocator work.
Diffstat (limited to 'vm/compiler/codegen/Optimizer.h')
-rw-r--r--vm/compiler/codegen/Optimizer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm/compiler/codegen/Optimizer.h b/vm/compiler/codegen/Optimizer.h
index 432b36898..0931df3d0 100644
--- a/vm/compiler/codegen/Optimizer.h
+++ b/vm/compiler/codegen/Optimizer.h
@@ -19,6 +19,15 @@
#include "Dalvik.h"
+/*
+ * If the corresponding bit is set in gDvmJit.disableOpt, the selected
+ * optimization will be suppressed.
+ */
+typedef enum optControlVector {
+ kLoadStoreElimination = 0,
+ kLoadHoisting,
+} optControlVector;
+
/* Forward declarations */
struct CompilationUnit;
struct LIR;