comparison graal/GraalCompiler/src/com/sun/c1x/C1XOptions.java @ 2731:a2f62de90c76

Removed unused optimization settings. Removed unused imports.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 17:20:55 +0200
parents 108adba3345e
children beea26b73b3f
comparison
equal deleted inserted replaced
2729:108adba3345e 2731:a2f62de90c76
37 // Checkstyle: stop 37 // Checkstyle: stop
38 private static final boolean ____ = false; 38 private static final boolean ____ = false;
39 // Checkstyle: resume 39 // Checkstyle: resume
40 40
41 // inlining settings 41 // inlining settings
42 public static boolean OptInline = ____;
43
44 public static int MaximumInstructionCount = 37000; 42 public static int MaximumInstructionCount = 37000;
45 public static float MaximumInlineRatio = 0.90f; 43 public static float MaximumInlineRatio = 0.90f;
46 public static int MaximumInlineSize = 35; 44 public static int MaximumInlineSize = 35;
47 public static int MaximumTrivialSize = 6; 45 public static int MaximumTrivialSize = 6;
48 public static int MaximumInlineLevel = 9; 46 public static int MaximumInlineLevel = 9;
89 public static boolean TraceAssembler = ____; 87 public static boolean TraceAssembler = ____;
90 public static int TraceBytecodeParserLevel = 0; 88 public static int TraceBytecodeParserLevel = 0;
91 public static boolean PrintAssumptions = ____; 89 public static boolean PrintAssumptions = ____;
92 public static boolean QuietBailout = ____; 90 public static boolean QuietBailout = ____;
93 91
94 // optimistic optimization settings
95 public static boolean UseAssumptions = true;
96
97 // state merging settings 92 // state merging settings
98 public static boolean AssumeVerifiedBytecode = ____; 93 public static boolean AssumeVerifiedBytecode = ____;
99 public static boolean PhiLoopStores = true;
100 94
101 // miscellaneous settings 95 // miscellaneous settings
102 public static boolean SupportObjectConstants = true; 96 public static boolean SupportObjectConstants = true;
103 97
104 // Linear scan settings 98 // Linear scan settings
137 public static boolean UseIncDec = ____; 131 public static boolean UseIncDec = ____;
138 public static boolean UseXmmLoadAndClearUpper = ____; 132 public static boolean UseXmmLoadAndClearUpper = ____;
139 public static boolean UseXmmRegToRegMoveAll = ____; 133 public static boolean UseXmmRegToRegMoveAll = ____;
140 134
141 public static boolean StressImplicitExceptions = ____; 135 public static boolean StressImplicitExceptions = ____;
142
143 static {
144 setOptimizationLevel(1);
145 }
146
147 public static void setOptimizationLevel(int level) {
148 final boolean l = (level >= 1);
149 final boolean ll = (level >= 2);
150 final boolean lll = (level >= 3);
151
152 // Level 1 optimizations
153 PhiLoopStores = l;
154
155 // Level 2 optimizations
156 OptInline = ll;
157
158 // Level 3 optimizations
159 UseAssumptions = lll;
160 }
161 } 136 }