src/share/vm/c1/c1_globals.hpp

Wed, 22 Jan 2014 17:42:23 -0800

author
kvn
date
Wed, 22 Jan 2014 17:42:23 -0800
changeset 6503
a9becfeecd1b
parent 6485
da862781b584
parent 6218
ef54656d5a65
child 6876
710a3c8b516e
child 7289
b9c94af14fd0
permissions
-rw-r--r--

Merge

duke@435 1 /*
mikael@6198 2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
duke@435 22 *
duke@435 23 */
duke@435 24
stefank@2314 25 #ifndef SHARE_VM_C1_C1_GLOBALS_HPP
stefank@2314 26 #define SHARE_VM_C1_C1_GLOBALS_HPP
stefank@2314 27
stefank@2314 28 #include "runtime/globals.hpp"
stefank@2314 29 #ifdef TARGET_ARCH_x86
stefank@2314 30 # include "c1_globals_x86.hpp"
stefank@2314 31 #endif
stefank@2314 32 #ifdef TARGET_ARCH_sparc
stefank@2314 33 # include "c1_globals_sparc.hpp"
stefank@2314 34 #endif
bobv@2508 35 #ifdef TARGET_ARCH_arm
bobv@2508 36 # include "c1_globals_arm.hpp"
bobv@2508 37 #endif
bobv@2508 38 #ifdef TARGET_ARCH_ppc
bobv@2508 39 # include "c1_globals_ppc.hpp"
bobv@2508 40 #endif
stefank@2314 41 #ifdef TARGET_OS_FAMILY_linux
stefank@2314 42 # include "c1_globals_linux.hpp"
stefank@2314 43 #endif
stefank@2314 44 #ifdef TARGET_OS_FAMILY_solaris
stefank@2314 45 # include "c1_globals_solaris.hpp"
stefank@2314 46 #endif
stefank@2314 47 #ifdef TARGET_OS_FAMILY_windows
stefank@2314 48 # include "c1_globals_windows.hpp"
stefank@2314 49 #endif
goetz@6461 50 #ifdef TARGET_OS_FAMILY_aix
goetz@6461 51 # include "c1_globals_aix.hpp"
goetz@6461 52 #endif
never@3156 53 #ifdef TARGET_OS_FAMILY_bsd
never@3156 54 # include "c1_globals_bsd.hpp"
never@3156 55 #endif
stefank@2314 56
duke@435 57 //
duke@435 58 // Defines all global flags used by the client compiler.
duke@435 59 //
roland@5628 60 #define C1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \
duke@435 61 \
duke@435 62 /* Printing */ \
duke@435 63 notproduct(bool, PrintC1Statistics, false, \
duke@435 64 "Print Compiler1 statistics" ) \
duke@435 65 \
duke@435 66 notproduct(bool, PrintInitialBlockList, false, \
duke@435 67 "Print block list of BlockListBuilder") \
duke@435 68 \
duke@435 69 notproduct(bool, PrintCFG, false, \
duke@435 70 "Print control flow graph after each change") \
duke@435 71 \
duke@435 72 notproduct(bool, PrintCFG0, false, \
duke@435 73 "Print control flow graph after construction") \
duke@435 74 \
duke@435 75 notproduct(bool, PrintCFG1, false, \
duke@435 76 "Print control flow graph after optimizations") \
duke@435 77 \
duke@435 78 notproduct(bool, PrintCFG2, false, \
duke@435 79 "Print control flow graph before code generation") \
duke@435 80 \
duke@435 81 notproduct(bool, PrintIRDuringConstruction, false, \
duke@435 82 "Print IR as it's being constructed (helpful for debugging frontend)")\
duke@435 83 \
iveresov@2138 84 notproduct(bool, PrintPhiFunctions, false, \
duke@435 85 "Print phi functions when they are created and simplified") \
duke@435 86 \
duke@435 87 notproduct(bool, PrintIR, false, \
duke@435 88 "Print full intermediate representation after each change") \
duke@435 89 \
duke@435 90 notproduct(bool, PrintIR0, false, \
duke@435 91 "Print full intermediate representation after construction") \
duke@435 92 \
duke@435 93 notproduct(bool, PrintIR1, false, \
duke@435 94 "Print full intermediate representation after optimizations") \
duke@435 95 \
duke@435 96 notproduct(bool, PrintIR2, false, \
duke@435 97 "Print full intermediate representation before code generation") \
duke@435 98 \
duke@435 99 notproduct(bool, PrintSimpleStubs, false, \
duke@435 100 "Print SimpleStubs") \
duke@435 101 \
duke@435 102 /* C1 optimizations */ \
duke@435 103 \
duke@435 104 develop(bool, UseC1Optimizations, true, \
duke@435 105 "Turn on C1 optimizations") \
duke@435 106 \
duke@435 107 develop(bool, SelectivePhiFunctions, true, \
duke@435 108 "create phi functions at loop headers only when necessary") \
duke@435 109 \
roland@2254 110 develop(bool, OptimizeIfOps, true, \
roland@2254 111 "Optimize multiple IfOps") \
roland@2254 112 \
duke@435 113 develop(bool, DoCEE, true, \
duke@435 114 "Do Conditional Expression Elimination to simplify CFG") \
duke@435 115 \
duke@435 116 develop(bool, PrintCEE, false, \
duke@435 117 "Print Conditional Expression Elimination") \
duke@435 118 \
duke@435 119 develop(bool, UseLocalValueNumbering, true, \
duke@435 120 "Use Local Value Numbering (embedded in GraphBuilder)") \
duke@435 121 \
duke@435 122 develop(bool, UseGlobalValueNumbering, true, \
duke@435 123 "Use Global Value Numbering (separate phase)") \
duke@435 124 \
roland@4860 125 product(bool, UseLoopInvariantCodeMotion, true, \
roland@4860 126 "Simple loop invariant code motion for short loops during GVN") \
roland@4860 127 \
roland@4860 128 develop(bool, TracePredicateFailedTraps, false, \
roland@4860 129 "trace runtime traps caused by predicate failure") \
roland@4860 130 \
roland@4860 131 develop(bool, StressLoopInvariantCodeMotion, false, \
roland@4860 132 "stress loop invariant code motion") \
roland@4860 133 \
roland@4860 134 develop(bool, TraceRangeCheckElimination, false, \
roland@4860 135 "Trace Range Check Elimination") \
roland@4860 136 \
roland@4860 137 develop(bool, AssertRangeCheckElimination, false, \
roland@4860 138 "Assert Range Check Elimination") \
roland@4860 139 \
roland@4860 140 develop(bool, StressRangeCheckElimination, false, \
roland@4860 141 "stress Range Check Elimination") \
roland@4860 142 \
duke@435 143 develop(bool, PrintValueNumbering, false, \
duke@435 144 "Print Value Numbering") \
duke@435 145 \
duke@435 146 product(intx, ValueMapInitialSize, 11, \
duke@435 147 "Initial size of a value map") \
duke@435 148 \
duke@435 149 product(intx, ValueMapMaxLoopSize, 8, \
duke@435 150 "maximum size of a loop optimized by global value numbering") \
duke@435 151 \
duke@435 152 develop(bool, EliminateBlocks, true, \
duke@435 153 "Eliminate unneccessary basic blocks") \
duke@435 154 \
duke@435 155 develop(bool, PrintBlockElimination, false, \
duke@435 156 "Print basic block elimination") \
duke@435 157 \
duke@435 158 develop(bool, EliminateNullChecks, true, \
duke@435 159 "Eliminate unneccessary null checks") \
duke@435 160 \
duke@435 161 develop(bool, PrintNullCheckElimination, false, \
duke@435 162 "Print null check elimination") \
duke@435 163 \
duke@435 164 develop(bool, EliminateFieldAccess, true, \
duke@435 165 "Optimize field loads and stores") \
duke@435 166 \
duke@435 167 develop(bool, InlineMethodsWithExceptionHandlers, true, \
duke@435 168 "Inline methods containing exception handlers " \
duke@435 169 "(NOTE: does not work with current backend)") \
duke@435 170 \
vladidan@4437 171 product(bool, InlineSynchronizedMethods, true, \
duke@435 172 "Inline synchronized methods") \
duke@435 173 \
duke@435 174 develop(bool, InlineNIOCheckIndex, true, \
duke@435 175 "Intrinsify java.nio.Buffer.checkIndex") \
duke@435 176 \
duke@435 177 develop(bool, CanonicalizeNodes, true, \
duke@435 178 "Canonicalize graph nodes") \
duke@435 179 \
duke@435 180 develop(bool, PrintCanonicalization, false, \
duke@435 181 "Print graph node canonicalization") \
duke@435 182 \
duke@435 183 develop(bool, UseTableRanges, true, \
duke@435 184 "Faster versions of lookup table using ranges") \
duke@435 185 \
duke@435 186 develop_pd(bool, RoundFPResults, \
duke@435 187 "Indicates whether rounding is needed for floating point results")\
duke@435 188 \
duke@435 189 develop(intx, NestedInliningSizeRatio, 90, \
duke@435 190 "Percentage of prev. allowed inline size in recursive inlining") \
duke@435 191 \
duke@435 192 notproduct(bool, PrintIRWithLIR, false, \
duke@435 193 "Print IR instructions with generated LIR") \
duke@435 194 \
duke@435 195 notproduct(bool, PrintLIRWithAssembly, false, \
duke@435 196 "Show LIR instruction with generated assembly") \
duke@435 197 \
duke@435 198 develop(bool, CommentedAssembly, trueInDebug, \
duke@435 199 "Show extra info in PrintNMethods output") \
duke@435 200 \
duke@435 201 develop(bool, LIRTracePeephole, false, \
duke@435 202 "Trace peephole optimizer") \
duke@435 203 \
duke@435 204 develop(bool, LIRTraceExecution, false, \
duke@435 205 "add LIR code which logs the execution of blocks") \
duke@435 206 \
duke@435 207 product_pd(bool, LIRFillDelaySlots, \
duke@435 208 "fill delays on on SPARC with LIR") \
duke@435 209 \
duke@435 210 develop_pd(bool, CSEArrayLength, \
duke@435 211 "Create separate nodes for length in array accesses") \
duke@435 212 \
duke@435 213 develop_pd(bool, TwoOperandLIRForm, \
duke@435 214 "true if LIR requires src1 and dst to match in binary LIR ops") \
duke@435 215 \
duke@435 216 develop(intx, TraceLinearScanLevel, 0, \
duke@435 217 "Debug levels for the linear scan allocator") \
duke@435 218 \
duke@435 219 develop(bool, StressLinearScan, false, \
duke@435 220 "scramble block order used by LinearScan (stress test)") \
duke@435 221 \
duke@435 222 product(bool, TimeLinearScan, false, \
duke@435 223 "detailed timing of LinearScan phases") \
duke@435 224 \
duke@435 225 develop(bool, TimeEachLinearScan, false, \
duke@435 226 "print detailed timing of each LinearScan run") \
duke@435 227 \
duke@435 228 develop(bool, CountLinearScan, false, \
duke@435 229 "collect statistic counters during LinearScan") \
duke@435 230 \
duke@435 231 /* C1 variable */ \
duke@435 232 \
duke@435 233 develop(bool, C1Breakpoint, false, \
duke@435 234 "Sets a breakpoint at entry of each compiled method") \
duke@435 235 \
duke@435 236 develop(bool, ImplicitDiv0Checks, true, \
duke@435 237 "Use implicit division by zero checks") \
duke@435 238 \
duke@435 239 develop(bool, PinAllInstructions, false, \
duke@435 240 "All instructions are pinned") \
duke@435 241 \
duke@435 242 develop(bool, UseFastNewInstance, true, \
duke@435 243 "Use fast inlined instance allocation") \
duke@435 244 \
duke@435 245 develop(bool, UseFastNewTypeArray, true, \
duke@435 246 "Use fast inlined type array allocation") \
duke@435 247 \
duke@435 248 develop(bool, UseFastNewObjectArray, true, \
duke@435 249 "Use fast inlined object array allocation") \
duke@435 250 \
duke@435 251 develop(bool, UseFastLocking, true, \
duke@435 252 "Use fast inlined locking code") \
duke@435 253 \
duke@435 254 develop(bool, UseSlowPath, false, \
duke@435 255 "For debugging: test slow cases by always using them") \
duke@435 256 \
duke@435 257 develop(bool, GenerateArrayStoreCheck, true, \
duke@435 258 "Generates code for array store checks") \
duke@435 259 \
duke@435 260 develop(bool, DeoptC1, true, \
duke@435 261 "Use deoptimization in C1") \
duke@435 262 \
duke@435 263 develop(bool, PrintBailouts, false, \
duke@435 264 "Print bailout and its reason") \
duke@435 265 \
duke@435 266 develop(bool, TracePatching, false, \
duke@435 267 "Trace patching of field access on uninitialized classes") \
duke@435 268 \
duke@435 269 develop(bool, PatchALot, false, \
duke@435 270 "Marks all fields as having unloaded classes") \
duke@435 271 \
duke@435 272 develop(bool, PrintNotLoaded, false, \
duke@435 273 "Prints where classes are not loaded during code generation") \
duke@435 274 \
duke@435 275 develop(bool, PrintLIR, false, \
duke@435 276 "print low-level IR") \
duke@435 277 \
duke@435 278 develop(bool, BailoutAfterHIR, false, \
duke@435 279 "bailout of compilation after building of HIR") \
duke@435 280 \
duke@435 281 develop(bool, BailoutAfterLIR, false, \
duke@435 282 "bailout of compilation after building of LIR") \
duke@435 283 \
duke@435 284 develop(bool, BailoutOnExceptionHandlers, false, \
duke@435 285 "bailout of compilation for methods with exception handlers") \
duke@435 286 \
duke@435 287 develop(bool, InstallMethods, true, \
duke@435 288 "Install methods at the end of successful compilations") \
duke@435 289 \
duke@435 290 product(intx, CompilationRepeat, 0, \
duke@435 291 "Number of times to recompile method before returning result") \
duke@435 292 \
iveresov@3096 293 develop(intx, NMethodSizeLimit, (64*K)*wordSize, \
duke@435 294 "Maximum size of a compiled method.") \
duke@435 295 \
duke@435 296 develop(bool, TraceFPUStack, false, \
duke@435 297 "Trace emulation of the FPU stack (intel only)") \
duke@435 298 \
duke@435 299 develop(bool, TraceFPURegisterUsage, false, \
duke@435 300 "Trace usage of FPU registers at start of blocks (intel only)") \
duke@435 301 \
duke@435 302 develop(bool, OptimizeUnsafes, true, \
duke@435 303 "Optimize raw unsafe ops") \
duke@435 304 \
duke@435 305 develop(bool, PrintUnsafeOptimization, false, \
duke@435 306 "Print optimization of raw unsafe ops") \
duke@435 307 \
duke@435 308 develop(intx, InstructionCountCutoff, 37000, \
duke@435 309 "If GraphBuilder adds this many instructions, bails out") \
duke@435 310 \
duke@435 311 product_pd(intx, SafepointPollOffset, \
duke@435 312 "Offset added to polling address (Intel only)") \
duke@435 313 \
duke@435 314 develop(bool, ComputeExactFPURegisterUsage, true, \
duke@435 315 "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \
duke@435 316 \
iveresov@2138 317 product(bool, C1ProfileCalls, true, \
duke@435 318 "Profile calls when generating code for updating MDOs") \
duke@435 319 \
iveresov@2138 320 product(bool, C1ProfileVirtualCalls, true, \
duke@435 321 "Profile virtual calls when generating code for updating MDOs") \
duke@435 322 \
iveresov@2138 323 product(bool, C1ProfileInlinedCalls, true, \
duke@435 324 "Profile inlined calls when generating code for updating MDOs") \
duke@435 325 \
iveresov@2138 326 product(bool, C1ProfileBranches, true, \
duke@435 327 "Profile branches when generating code for updating MDOs") \
duke@435 328 \
iveresov@2138 329 product(bool, C1ProfileCheckcasts, true, \
duke@435 330 "Profile checkcasts when generating code for updating MDOs") \
duke@435 331 \
iveresov@2138 332 product(bool, C1OptimizeVirtualCallProfiling, true, \
iveresov@2138 333 "Use CHA and exact type results at call sites when updating MDOs")\
duke@435 334 \
iveresov@2138 335 product(bool, C1UpdateMethodData, trueInTiered, \
roland@5628 336 "Update MethodData*s in Tier1-generated code") \
duke@435 337 \
duke@435 338 develop(bool, PrintCFGToFile, false, \
duke@435 339 "print control flow graph to a separate file during compilation") \
duke@435 340 \
roland@5628 341 diagnostic(bool, C1PatchInvokeDynamic, true, \
roland@5628 342 "Patch invokedynamic appendix not known at compile time") \
roland@5628 343 \
duke@435 344
duke@435 345
duke@435 346 // Read default values for c1 globals
duke@435 347
roland@5628 348 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
stefank@2314 349
stefank@2314 350 #endif // SHARE_VM_C1_C1_GLOBALS_HPP

mercurial