aoqi@0: /* aoqi@0: * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. aoqi@0: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: * aoqi@0: * This code is free software; you can redistribute it and/or modify it aoqi@0: * under the terms of the GNU General Public License version 2 only, as aoqi@0: * published by the Free Software Foundation. aoqi@0: * aoqi@0: * This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: * version 2 for more details (a copy is included in the LICENSE file that aoqi@0: * accompanied this code). aoqi@0: * aoqi@0: * You should have received a copy of the GNU General Public License version aoqi@0: * 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: * aoqi@0: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: * or visit www.oracle.com if you need additional information or have any aoqi@0: * questions. aoqi@0: * aoqi@0: */ aoqi@0: aoqi@1: /* aoqi@1: * This file has been modified by Loongson Technology in 2015. These aoqi@1: * modifications are Copyright (c) 2015 Loongson Technology, and are made aoqi@1: * available on the same license terms set forth above. aoqi@1: */ aoqi@1: aoqi@0: #ifndef SHARE_VM_OPTO_C2_GLOBALS_HPP aoqi@0: #define SHARE_VM_OPTO_C2_GLOBALS_HPP aoqi@0: aoqi@0: #include "runtime/globals.hpp" aoqi@0: #ifdef TARGET_ARCH_x86 aoqi@0: # include "c2_globals_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_sparc aoqi@0: # include "c2_globals_sparc.hpp" aoqi@0: #endif aoqi@1: #ifdef TARGET_ARCH_mips aoqi@1: # include "c2_globals_mips.hpp" aoqi@1: #endif aoqi@0: #ifdef TARGET_ARCH_arm aoqi@0: # include "c2_globals_arm.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_ppc aoqi@0: # include "c2_globals_ppc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_linux aoqi@0: # include "c2_globals_linux.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_solaris aoqi@0: # include "c2_globals_solaris.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_windows aoqi@0: # include "c2_globals_windows.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_aix aoqi@0: # include "c2_globals_aix.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_bsd aoqi@0: # include "c2_globals_bsd.hpp" aoqi@0: #endif aoqi@0: aoqi@0: // aoqi@0: // Defines all globals flags used by the server compiler. aoqi@0: // aoqi@0: aoqi@0: #define C2_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct) \ aoqi@0: \ aoqi@0: develop(bool, StressLCM, false, \ aoqi@0: "Randomize instruction scheduling in LCM") \ aoqi@0: \ aoqi@0: develop(bool, StressGCM, false, \ aoqi@0: "Randomize instruction scheduling in GCM") \ aoqi@0: \ aoqi@0: notproduct(intx, CompileZapFirst, 0, \ aoqi@0: "If +ZapDeadCompiledLocals, " \ aoqi@0: "skip this many before compiling in zap calls") \ aoqi@0: \ aoqi@0: notproduct(intx, CompileZapLast, -1, \ aoqi@0: "If +ZapDeadCompiledLocals, " \ aoqi@0: "compile this many after skipping (incl. skip count, -1 = all)") \ aoqi@0: \ aoqi@0: notproduct(intx, ZapDeadCompiledLocalsFirst, 0, \ aoqi@0: "If +ZapDeadCompiledLocals, " \ aoqi@0: "skip this many before really doing it") \ aoqi@0: \ aoqi@0: notproduct(intx, ZapDeadCompiledLocalsLast, -1, \ aoqi@0: "If +ZapDeadCompiledLocals, " \ aoqi@0: "do this many after skipping (incl. skip count, -1 = all)") \ aoqi@0: \ aoqi@0: develop(intx, OptoPrologueNops, 0, \ aoqi@0: "Insert this many extra nop instructions " \ aoqi@0: "in the prologue of every nmethod") \ aoqi@0: \ aoqi@0: product_pd(intx, InteriorEntryAlignment, \ aoqi@0: "Code alignment for interior entry points " \ aoqi@0: "in generated code (in bytes)") \ aoqi@0: \ aoqi@0: product(intx, MaxLoopPad, (OptoLoopAlignment-1), \ aoqi@0: "Align a loop if padding size in bytes is less or equal to this value") \ aoqi@0: \ aoqi@0: product(intx, MaxVectorSize, 32, \ aoqi@0: "Max vector size in bytes, " \ aoqi@0: "actual size could be less depending on elements type") \ aoqi@0: \ aoqi@0: product(bool, AlignVector, true, \ aoqi@0: "Perform vector store/load alignment in loop") \ aoqi@0: \ aoqi@0: product(intx, NumberOfLoopInstrToAlign, 4, \ aoqi@0: "Number of first instructions in a loop to align") \ aoqi@0: \ aoqi@0: notproduct(intx, IndexSetWatch, 0, \ aoqi@0: "Trace all operations on this IndexSet (-1 means all, 0 none)") \ aoqi@0: \ aoqi@0: develop(intx, OptoNodeListSize, 4, \ aoqi@0: "Starting allocation size of Node_List data structures") \ aoqi@0: \ aoqi@0: develop(intx, OptoBlockListSize, 8, \ aoqi@0: "Starting allocation size of Block_List data structures") \ aoqi@0: \ aoqi@0: develop(intx, OptoPeepholeAt, -1, \ aoqi@0: "Apply peephole optimizations to this peephole rule") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintIdeal, false, \ aoqi@0: "Print ideal graph before code generation") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintOpto, false, \ aoqi@0: "Print compiler2 attempts") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintOptoInlining, false, \ aoqi@0: "Print compiler2 inlining decisions") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyOpto, false, \ aoqi@0: "Apply more time consuming verification during compilation") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyIdealNodeCount, false, \ aoqi@0: "Verify that tracked dead ideal node count is accurate") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintIdealNodeCount, false, \ aoqi@0: "Print liveness counts of ideal nodes") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyOptoOopOffsets, false, \ aoqi@0: "Check types of base addresses in field references") \ aoqi@0: \ aoqi@0: develop(bool, IdealizedNumerics, false, \ aoqi@0: "Check performance difference allowing FP " \ aoqi@0: "associativity and commutativity...") \ aoqi@0: \ aoqi@0: develop(bool, OptoBreakpoint, false, \ aoqi@0: "insert breakpoint at method entry") \ aoqi@0: \ aoqi@0: notproduct(bool, OptoBreakpointOSR, false, \ aoqi@0: "insert breakpoint at osr method entry") \ aoqi@0: \ aoqi@0: notproduct(intx, BreakAtNode, 0, \ aoqi@0: "Break at construction of this Node (either _idx or _debug_idx)") \ aoqi@0: \ aoqi@0: notproduct(bool, OptoBreakpointC2R, false, \ aoqi@0: "insert breakpoint at runtime stub entry") \ aoqi@0: \ aoqi@0: notproduct(bool, OptoNoExecute, false, \ aoqi@0: "Attempt to parse and compile but do not execute generated code") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintOptoStatistics, false, \ aoqi@0: "Print New compiler statistics") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintOptoAssembly, false, \ aoqi@0: "Print New compiler assembly output") \ aoqi@0: \ aoqi@0: develop_pd(bool, OptoPeephole, \ aoqi@0: "Apply peephole optimizations after register allocation") \ aoqi@0: \ aoqi@0: develop(bool, OptoRemoveUseless, true, \ aoqi@0: "Remove useless nodes after parsing") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintFrameConverterAssembly, false, \ aoqi@0: "Print New compiler assembly output for frame converters") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintParseStatistics, false, \ aoqi@0: "Print nodes, transforms and new values made per bytecode parsed")\ aoqi@0: \ aoqi@0: notproduct(bool, PrintOptoPeephole, false, \ aoqi@0: "Print New compiler peephole replacements") \ aoqi@0: \ aoqi@0: develop(bool, PrintCFGBlockFreq, false, \ aoqi@0: "Print CFG block freqencies") \ aoqi@0: \ aoqi@0: develop(bool, TraceOptoParse, false, \ aoqi@0: "Trace bytecode parse and control-flow merge") \ aoqi@0: \ aoqi@0: product_pd(intx, LoopUnrollLimit, \ aoqi@0: "Unroll loop bodies with node count less than this") \ aoqi@0: \ aoqi@0: product(intx, LoopMaxUnroll, 16, \ aoqi@0: "Maximum number of unrolls for main loop") \ aoqi@0: \ aoqi@0: product(intx, LoopUnrollMin, 4, \ aoqi@0: "Minimum number of unroll loop bodies before checking progress" \ aoqi@0: "of rounds of unroll,optimize,..") \ aoqi@0: \ aoqi@0: develop(intx, UnrollLimitForProfileCheck, 1, \ aoqi@0: "Don't use profile_trip_cnt() to restrict unrolling until " \ aoqi@0: "unrolling would push the number of unrolled iterations above " \ aoqi@0: "UnrollLimitForProfileCheck. A higher value allows more " \ aoqi@0: "unrolling. Zero acts as a very large value." ) \ aoqi@0: \ aoqi@0: product(intx, MultiArrayExpandLimit, 6, \ aoqi@0: "Maximum number of individual allocations in an inline-expanded " \ aoqi@0: "multianewarray instruction") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceProfileTripCount, false, \ aoqi@0: "Trace profile loop trip count information") \ aoqi@0: \ aoqi@0: product(bool, UseLoopPredicate, true, \ aoqi@0: "Generate a predicate to select fast/slow loop versions") \ aoqi@0: \ aoqi@0: develop(bool, TraceLoopPredicate, false, \ aoqi@0: "Trace generation of loop predicates") \ aoqi@0: \ aoqi@0: develop(bool, TraceLoopOpts, false, \ aoqi@0: "Trace executed loop optimizations") \ aoqi@0: \ aoqi@0: diagnostic(bool, LoopLimitCheck, true, \ aoqi@0: "Generate a loop limits check for overflow") \ aoqi@0: \ aoqi@0: develop(bool, TraceLoopLimitCheck, false, \ aoqi@0: "Trace generation of loop limits checks") \ aoqi@0: \ aoqi@0: diagnostic(bool, RangeLimitCheck, true, \ aoqi@0: "Additional overflow checks during range check elimination") \ aoqi@0: \ aoqi@0: develop(bool, TraceRangeLimitCheck, false, \ aoqi@0: "Trace additional overflow checks in RCE") \ aoqi@0: \ aoqi@0: diagnostic(bool, UnrollLimitCheck, true, \ aoqi@0: "Additional overflow checks during loop unroll") \ aoqi@0: \ aoqi@0: /* OptimizeFill not yet supported on PowerPC. */ \ aoqi@0: product(bool, OptimizeFill, true PPC64_ONLY(&& false), \ aoqi@0: "convert fill/copy loops into intrinsic") \ aoqi@0: \ aoqi@0: develop(bool, TraceOptimizeFill, false, \ aoqi@0: "print detailed information about fill conversion") \ aoqi@0: \ aoqi@0: develop(bool, OptoCoalesce, true, \ aoqi@0: "Use Conservative Copy Coalescing in the Register Allocator") \ aoqi@0: \ aoqi@0: develop(bool, UseUniqueSubclasses, true, \ aoqi@0: "Narrow an abstract reference to the unique concrete subclass") \ aoqi@0: \ aoqi@0: develop(bool, UseExactTypes, true, \ aoqi@0: "Use exact types to eliminate array store checks and v-calls") \ aoqi@0: \ aoqi@0: product(intx, TrackedInitializationLimit, 50, \ aoqi@0: "When initializing fields, track up to this many words") \ aoqi@0: \ aoqi@0: product(bool, ReduceFieldZeroing, true, \ aoqi@0: "When initializing fields, try to avoid needless zeroing") \ aoqi@0: \ aoqi@0: product(bool, ReduceInitialCardMarks, true, \ aoqi@0: "When initializing fields, try to avoid needless card marks") \ aoqi@0: \ aoqi@0: product(bool, ReduceBulkZeroing, true, \ aoqi@0: "When bulk-initializing, try to avoid needless zeroing") \ aoqi@0: \ aoqi@0: product(bool, UseFPUForSpilling, false, \ aoqi@0: "Spill integer registers to FPU instead of stack when possible") \ aoqi@0: \ aoqi@0: develop_pd(intx, RegisterCostAreaRatio, \ aoqi@0: "Spill selection in reg allocator: scale area by (X/64K) before " \ aoqi@0: "adding cost") \ aoqi@0: \ aoqi@0: develop_pd(bool, UseCISCSpill, \ aoqi@0: "Use ADLC supplied cisc instructions during allocation") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyGraphEdges , false, \ aoqi@0: "Verify Bi-directional Edges") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyDUIterators, true, \ aoqi@0: "Verify the safety of all iterations of Bi-directional Edges") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyHashTableKeys, true, \ aoqi@0: "Verify the immutability of keys in the VN hash tables") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyRegisterAllocator , false, \ aoqi@0: "Verify Register Allocator") \ aoqi@0: \ aoqi@0: develop_pd(intx, FLOATPRESSURE, \ aoqi@0: "Number of float LRG's that constitute high register pressure") \ aoqi@0: \ aoqi@0: develop_pd(intx, INTPRESSURE, \ aoqi@0: "Number of integer LRG's that constitute high register pressure") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceOptoPipelining, false, \ aoqi@0: "Trace pipelining information") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceOptoOutput, false, \ aoqi@0: "Trace pipelining information") \ aoqi@0: \ aoqi@0: product_pd(bool, OptoScheduling, \ aoqi@0: "Instruction Scheduling after register allocation") \ aoqi@0: \ aoqi@0: product(bool, PartialPeelLoop, true, \ aoqi@0: "Partial peel (rotate) loops") \ aoqi@0: \ aoqi@0: product(intx, PartialPeelNewPhiDelta, 0, \ aoqi@0: "Additional phis that can be created by partial peeling") \ aoqi@0: \ aoqi@0: notproduct(bool, TracePartialPeeling, false, \ aoqi@0: "Trace partial peeling (loop rotation) information") \ aoqi@0: \ aoqi@0: product(bool, PartialPeelAtUnsignedTests, true, \ aoqi@0: "Partial peel at unsigned tests if no signed test exists") \ aoqi@0: \ aoqi@0: product(bool, ReassociateInvariants, true, \ aoqi@0: "Enable reassociation of expressions with loop invariants.") \ aoqi@0: \ aoqi@0: product(bool, LoopUnswitching, true, \ aoqi@0: "Enable loop unswitching (a form of invariant test hoisting)") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceLoopUnswitching, false, \ aoqi@0: "Trace loop unswitching") \ aoqi@0: \ aoqi@0: product(bool, UseSuperWord, true, \ aoqi@0: "Transform scalar operations into superword operations") \ aoqi@0: \ aoqi@0: develop(bool, SuperWordRTDepCheck, false, \ aoqi@0: "Enable runtime dependency checks.") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceSuperWord, false, \ aoqi@0: "Trace superword transforms") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceNewVectors, false, \ aoqi@0: "Trace creation of Vector nodes") \ aoqi@0: \ aoqi@0: product_pd(bool, OptoBundling, \ aoqi@0: "Generate nops to fill i-cache lines") \ aoqi@0: \ aoqi@0: product_pd(intx, ConditionalMoveLimit, \ aoqi@0: "Limit of ops to make speculative when using CMOVE") \ aoqi@0: \ aoqi@0: /* Set BranchOnRegister == false. See 4965987. */ \ aoqi@0: product(bool, BranchOnRegister, false, \ aoqi@0: "Use Sparc V9 branch-on-register opcodes") \ aoqi@0: \ aoqi@0: develop(bool, SparcV9RegsHiBitsZero, true, \ aoqi@0: "Assume Sparc V9 I&L registers on V8+ systems are zero-extended") \ aoqi@0: \ aoqi@0: product(bool, UseRDPCForConstantTableBase, false, \ aoqi@0: "Use Sparc RDPC instruction for the constant table base.") \ aoqi@0: \ aoqi@0: develop(intx, PrintIdealGraphLevel, 0, \ aoqi@0: "Print ideal graph to XML file / network interface. " \ aoqi@0: "By default attempts to connect to the visualizer on a socket.") \ aoqi@0: \ aoqi@0: develop(intx, PrintIdealGraphPort, 4444, \ aoqi@0: "Ideal graph printer to network port") \ aoqi@0: \ aoqi@0: notproduct(ccstr, PrintIdealGraphAddress, "127.0.0.1", \ aoqi@0: "IP address to connect to visualizer") \ aoqi@0: \ aoqi@0: notproduct(ccstr, PrintIdealGraphFile, NULL, \ aoqi@0: "File to dump ideal graph to. If set overrides the " \ aoqi@0: "use of the network") \ aoqi@0: \ aoqi@0: product(bool, UseOldInlining, true, \ aoqi@0: "Enable the 1.3 inlining strategy") \ aoqi@0: \ aoqi@0: product(bool, UseBimorphicInlining, true, \ aoqi@0: "Profiling based inlining for two receivers") \ aoqi@0: \ aoqi@0: product(bool, UseOnlyInlinedBimorphic, true, \ aoqi@0: "Don't use BimorphicInlining if can't inline a second method") \ aoqi@0: \ aoqi@0: product(bool, InsertMemBarAfterArraycopy, true, \ aoqi@0: "Insert memory barrier after arraycopy call") \ aoqi@0: \ aoqi@0: develop(bool, SubsumeLoads, true, \ aoqi@0: "Attempt to compile while subsuming loads into machine instructions.") \ aoqi@0: \ aoqi@0: develop(bool, StressRecompilation, false, \ aoqi@0: "Recompile each compiled method without subsuming loads or escape analysis.") \ aoqi@0: \ aoqi@0: develop(intx, ImplicitNullCheckThreshold, 3, \ aoqi@0: "Don't do implicit null checks if NPE's in a method exceeds limit") \ aoqi@0: \ aoqi@0: product(intx, LoopOptsCount, 43, \ aoqi@0: "Set level of loop optimization for tier 1 compiles") \ aoqi@0: \ aoqi@0: /* controls for heat-based inlining */ \ aoqi@0: \ aoqi@0: develop(intx, NodeCountInliningCutoff, 18000, \ aoqi@0: "If parser node generation exceeds limit stop inlining") \ aoqi@0: \ aoqi@0: develop(intx, NodeCountInliningStep, 1000, \ aoqi@0: "Target size of warm calls inlined between optimization passes") \ aoqi@0: \ aoqi@0: develop(bool, InlineWarmCalls, false, \ aoqi@0: "Use a heat-based priority queue to govern inlining") \ aoqi@0: \ aoqi@0: develop(intx, HotCallCountThreshold, 999999, \ aoqi@0: "large numbers of calls (per method invocation) force hotness") \ aoqi@0: \ aoqi@0: develop(intx, HotCallProfitThreshold, 999999, \ aoqi@0: "highly profitable inlining opportunities force hotness") \ aoqi@0: \ aoqi@0: develop(intx, HotCallTrivialWork, -1, \ aoqi@0: "trivial execution time (no larger than this) forces hotness") \ aoqi@0: \ aoqi@0: develop(intx, HotCallTrivialSize, -1, \ aoqi@0: "trivial methods (no larger than this) force calls to be hot") \ aoqi@0: \ aoqi@0: develop(intx, WarmCallMinCount, -1, \ aoqi@0: "number of calls (per method invocation) to enable inlining") \ aoqi@0: \ aoqi@0: develop(intx, WarmCallMinProfit, -1, \ aoqi@0: "number of calls (per method invocation) to enable inlining") \ aoqi@0: \ aoqi@0: develop(intx, WarmCallMaxWork, 999999, \ aoqi@0: "execution time of the largest inlinable method") \ aoqi@0: \ aoqi@0: develop(intx, WarmCallMaxSize, 999999, \ aoqi@0: "size of the largest inlinable method") \ aoqi@0: \ aoqi@0: product(intx, MaxNodeLimit, 80000, \ aoqi@0: "Maximum number of nodes") \ aoqi@0: \ aoqi@0: product(intx, NodeLimitFudgeFactor, 2000, \ aoqi@0: "Fudge Factor for certain optimizations") \ aoqi@0: \ aoqi@0: product(bool, UseJumpTables, true, \ aoqi@0: "Use JumpTables instead of a binary search tree for switches") \ aoqi@0: \ aoqi@0: product(bool, UseDivMod, true, \ aoqi@0: "Use combined DivMod instruction if available") \ aoqi@0: \ aoqi@0: product_pd(intx, MinJumpTableSize, \ aoqi@0: "Minimum number of targets in a generated jump table") \ aoqi@0: \ aoqi@0: product(intx, MaxJumpTableSize, 65000, \ aoqi@0: "Maximum number of targets in a generated jump table") \ aoqi@0: \ aoqi@0: product(intx, MaxJumpTableSparseness, 5, \ aoqi@0: "Maximum sparseness for jumptables") \ aoqi@0: \ aoqi@0: product(bool, EliminateLocks, true, \ aoqi@0: "Coarsen locks when possible") \ aoqi@0: \ aoqi@0: product(bool, EliminateNestedLocks, true, \ aoqi@0: "Eliminate nested locks of the same object when possible") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintLockStatistics, false, \ aoqi@0: "Print precise statistics on the dynamic lock usage") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintPreciseBiasedLockingStatistics, false, \ aoqi@0: "Print per-lock-site statistics of biased locking in JVM") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintPreciseRTMLockingStatistics, false, \ aoqi@0: "Print per-lock-site statistics of rtm locking in JVM") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintEliminateLocks, false, \ aoqi@0: "Print out when locks are eliminated") \ aoqi@0: \ aoqi@0: product(bool, EliminateAutoBox, true, \ aoqi@0: "Control optimizations for autobox elimination") \ aoqi@0: \ aoqi@0: diagnostic(bool, UseImplicitStableValues, true, \ aoqi@0: "Mark well-known stable fields as such (e.g. String.value)") \ aoqi@0: \ aoqi@0: product(intx, AutoBoxCacheMax, 128, \ aoqi@0: "Sets max value cached by the java.lang.Integer autobox cache") \ aoqi@0: \ aoqi@0: experimental(bool, AggressiveUnboxing, false, \ aoqi@0: "Control optimizations for aggressive boxing elimination") \ aoqi@0: \ aoqi@0: develop(bool, TracePostallocExpand, false, "Trace expanding nodes after" \ aoqi@0: " register allocation.") \ aoqi@0: \ aoqi@0: product(bool, DoEscapeAnalysis, true, \ aoqi@0: "Perform escape analysis") \ aoqi@0: \ aoqi@0: develop(bool, ExitEscapeAnalysisOnTimeout, true, \ aoqi@0: "Exit or throw assert in EA when it reaches time limit") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintEscapeAnalysis, false, \ aoqi@0: "Print the results of escape analysis") \ aoqi@0: \ aoqi@0: product(bool, EliminateAllocations, true, \ aoqi@0: "Use escape analysis to eliminate allocations") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintEliminateAllocations, false, \ aoqi@0: "Print out when allocations are eliminated") \ aoqi@0: \ aoqi@0: product(intx, EliminateAllocationArraySizeLimit, 64, \ aoqi@0: "Array size (number of elements) limit for scalar replacement") \ aoqi@0: \ aoqi@0: product(bool, OptimizePtrCompare, true, \ aoqi@0: "Use escape analysis to optimize pointers compare") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintOptimizePtrCompare, false, \ aoqi@0: "Print information about optimized pointers compare") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyConnectionGraph , true, \ aoqi@0: "Verify Connection Graph construction in Escape Analysis") \ aoqi@0: \ aoqi@0: product(bool, UseOptoBiasInlining, true, \ aoqi@0: "Generate biased locking code in C2 ideal graph") \ aoqi@0: \ aoqi@0: product(bool, OptimizeStringConcat, true, \ aoqi@0: "Optimize the construction of Strings by StringBuilder") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintOptimizeStringConcat, false, \ aoqi@0: "Print information about transformations performed on Strings") \ aoqi@0: \ aoqi@0: product(intx, ValueSearchLimit, 1000, \ aoqi@0: "Recursion limit in PhaseMacroExpand::value_from_mem_phi") \ aoqi@0: \ aoqi@0: product(intx, MaxLabelRootDepth, 1100, \ aoqi@0: "Maximum times call Label_Root to prevent stack overflow") \ aoqi@0: \ aoqi@0: diagnostic(intx, DominatorSearchLimit, 1000, \ aoqi@0: "Iterations limit in Node::dominates") \ aoqi@0: \ aoqi@0: product(bool, BlockLayoutByFrequency, true, \ aoqi@0: "Use edge frequencies to drive block ordering") \ aoqi@0: \ aoqi@0: product(intx, BlockLayoutMinDiamondPercentage, 20, \ aoqi@0: "Miniumum %% of a successor (predecessor) for which block layout "\ aoqi@0: "a will allow a fork (join) in a single chain") \ aoqi@0: \ aoqi@0: product(bool, BlockLayoutRotateLoops, true, \ aoqi@0: "Allow back branches to be fall throughs in the block layour") \ aoqi@0: \ aoqi@0: develop(bool, InlineReflectionGetCallerClass, true, \ aoqi@0: "inline sun.reflect.Reflection.getCallerClass(), known to be part "\ aoqi@0: "of base library DLL") \ aoqi@0: \ aoqi@0: develop(bool, InlineObjectCopy, true, \ aoqi@0: "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ aoqi@0: \ aoqi@0: develop(bool, SpecialStringCompareTo, true, \ aoqi@0: "special version of string compareTo") \ aoqi@0: \ aoqi@0: develop(bool, SpecialStringIndexOf, true, \ aoqi@0: "special version of string indexOf") \ aoqi@0: \ aoqi@0: develop(bool, SpecialStringEquals, true, \ aoqi@0: "special version of string equals") \ aoqi@0: \ aoqi@0: develop(bool, SpecialArraysEquals, true, \ aoqi@0: "special version of Arrays.equals(char[],char[])") \ aoqi@0: \ aoqi@0: product(bool, SpecialEncodeISOArray, true, \ aoqi@0: "special version of ISO_8859_1$Encoder.encodeISOArray") \ aoqi@0: \ aoqi@0: develop(bool, BailoutToInterpreterForThrows, false, \ aoqi@0: "Compiled methods which throws/catches exceptions will be " \ aoqi@0: "deopt and intp.") \ aoqi@0: \ aoqi@0: develop(bool, ConvertCmpD2CmpF, true, \ aoqi@0: "Convert cmpD to cmpF when one input is constant in float range") \ aoqi@0: \ aoqi@0: develop(bool, ConvertFloat2IntClipping, true, \ aoqi@0: "Convert float2int clipping idiom to integer clipping") \ aoqi@0: \ aoqi@0: develop(bool, Use24BitFPMode, true, \ aoqi@0: "Set 24-bit FPU mode on a per-compile basis ") \ aoqi@0: \ aoqi@0: develop(bool, Use24BitFP, true, \ aoqi@0: "use FP instructions that produce 24-bit precise results") \ aoqi@0: \ aoqi@0: develop(bool, MonomorphicArrayCheck, true, \ aoqi@0: "Uncommon-trap array store checks that require full type check") \ aoqi@0: \ aoqi@0: notproduct(bool, TracePhaseCCP, false, \ aoqi@0: "Print progress during Conditional Constant Propagation") \ aoqi@0: \ aoqi@0: develop(bool, PrintDominators, false, \ aoqi@0: "Print out dominator trees for GVN") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceSpilling, false, \ aoqi@0: "Trace spilling") \ aoqi@0: \ aoqi@0: diagnostic(bool, TraceTypeProfile, false, \ aoqi@0: "Trace type profile") \ aoqi@0: \ aoqi@0: develop(bool, PoisonOSREntry, true, \ aoqi@0: "Detect abnormal calls to OSR code") \ aoqi@0: \ aoqi@0: product(bool, UseCondCardMark, false, \ aoqi@0: "Check for already marked card before updating card table") \ aoqi@0: \ aoqi@0: develop(bool, SoftMatchFailure, trueInProduct, \ aoqi@0: "If the DFA fails to match a node, print a message and bail out") \ aoqi@0: \ aoqi@0: develop(bool, InlineAccessors, true, \ aoqi@0: "inline accessor methods (get/set)") \ aoqi@0: \ aoqi@0: product(intx, TypeProfileMajorReceiverPercent, 90, \ aoqi@0: "% of major receiver type to all profiled receivers") \ aoqi@0: \ aoqi@0: notproduct(bool, TimeCompiler2, false, \ aoqi@0: "detailed time the compiler (requires +TimeCompiler)") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintIntrinsics, false, \ aoqi@0: "prints attempted and successful inlining of intrinsics") \ aoqi@0: \ aoqi@0: diagnostic(ccstrlist, DisableIntrinsic, "", \ aoqi@0: "do not expand intrinsics whose (internal) names appear here") \ aoqi@0: \ aoqi@0: develop(bool, StressReflectiveCode, false, \ aoqi@0: "Use inexact types at allocations, etc., to test reflection") \ aoqi@0: \ aoqi@0: diagnostic(bool, DebugInlinedCalls, true, \ aoqi@0: "If false, restricts profiled locations to the root method only") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyLoopOptimizations, false, \ aoqi@0: "verify major loop optimizations") \ aoqi@0: \ aoqi@0: diagnostic(bool, ProfileDynamicTypes, true, \ aoqi@0: "do extra type profiling and use it more aggressively") \ aoqi@0: \ aoqi@0: develop(bool, TraceIterativeGVN, false, \ aoqi@0: "Print progress during Iterative Global Value Numbering") \ aoqi@0: \ aoqi@0: develop(bool, VerifyIterativeGVN, false, \ aoqi@0: "Verify Def-Use modifications during sparse Iterative Global " \ aoqi@0: "Value Numbering") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceCISCSpill, false, \ aoqi@0: "Trace allocators use of cisc spillable instructions") \ aoqi@0: \ aoqi@0: product(bool, SplitIfBlocks, true, \ aoqi@0: "Clone compares and control flow through merge points to fold " \ aoqi@0: "some branches") \ aoqi@0: \ aoqi@0: develop(intx, FreqCountInvocations, 1, \ aoqi@0: "Scaling factor for branch frequencies (deprecated)") \ aoqi@0: \ aoqi@0: product(intx, AliasLevel, 3, \ aoqi@0: "0 for no aliasing, 1 for oop/field/static/array split, " \ aoqi@0: "2 for class split, 3 for unique instances") \ aoqi@0: \ aoqi@0: develop(bool, VerifyAliases, false, \ aoqi@0: "perform extra checks on the results of alias analysis") \ aoqi@0: \ aoqi@0: product(bool, IncrementalInline, true, \ aoqi@0: "do post parse inlining") \ aoqi@0: \ aoqi@0: develop(bool, AlwaysIncrementalInline, false, \ aoqi@0: "do all inlining incrementally") \ aoqi@0: \ aoqi@0: product(intx, LiveNodeCountInliningCutoff, 20000, \ aoqi@0: "max number of live nodes in a method") \ aoqi@0: \ aoqi@0: diagnostic(bool, OptimizeExpensiveOps, true, \ aoqi@0: "Find best control for expensive operations") \ aoqi@0: \ aoqi@0: product(bool, UseMathExactIntrinsics, true, \ aoqi@0: "Enables intrinsification of various java.lang.Math functions") \ aoqi@0: \ aoqi@0: experimental(bool, ReplaceInParentMaps, false, \ aoqi@0: "Propagate type improvements in callers of inlinee if possible") \ aoqi@0: \ aoqi@0: product(bool, UseTypeSpeculation, true, \ aoqi@0: "Speculatively propagate types from profiles") \ aoqi@0: \ aoqi@0: diagnostic(bool, UseInlineDepthForSpeculativeTypes, true, \ aoqi@0: "Carry inline depth of profile point with speculative type " \ aoqi@0: "and give priority to profiling from lower inline depth") \ aoqi@0: \ aoqi@0: product_pd(bool, TrapBasedRangeChecks, \ aoqi@0: "Generate code for range checks that uses a cmp and trap " \ aoqi@0: "instruction raising SIGTRAP. Used on PPC64.") \ aoqi@0: aoqi@0: C2_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG) aoqi@0: aoqi@0: #endif // SHARE_VM_OPTO_C2_GLOBALS_HPP