< prev index next >

src/hotspot/share/opto/c2_globals.hpp

Print this page


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_OPTO_C2_GLOBALS_HPP
  26 #define SHARE_OPTO_C2_GLOBALS_HPP
  27 

  28 #include "runtime/globals_shared.hpp"
  29 #include "utilities/macros.hpp"
  30 
  31 #include CPU_HEADER(c2_globals)
  32 #include OS_HEADER(c2_globals)
  33 


  34 //
  35 // Defines all globals flags used by the server compiler.
  36 //
  37 
  38 #define C2_FLAGS(develop, \
  39                  develop_pd, \
  40                  product, \
  41                  product_pd, \
  42                  diagnostic, \
  43                  diagnostic_pd, \
  44                  experimental, \
  45                  notproduct, \
  46                  range, \
  47                  constraint) \
  48                                                                             \
  49   diagnostic(bool, StressLCM, false,                                        \
  50           "Randomize instruction scheduling in LCM")                        \
  51                                                                             \
  52   diagnostic(bool, StressGCM, false,                                        \
  53           "Randomize instruction scheduling in GCM")                        \
  54                                                                             \
  55   develop(bool, StressMethodHandleLinkerInlining, false,                    \
  56           "Stress inlining through method handle linkers")                  \
  57                                                                             \
  58   develop(intx, OptoPrologueNops, 0,                                        \
  59           "Insert this many extra nop instructions "                        \
  60           "in the prologue of every nmethod")                               \
  61           range(0, 128)                                                     \
  62                                                                             \
  63   product_pd(intx, InteriorEntryAlignment,                                  \
  64           "Code alignment for interior entry points "                       \
  65           "in generated code (in bytes)")                                   \
  66           constraint(InteriorEntryAlignmentConstraintFunc, AfterErgo)       \
  67                                                                             \
  68   product(intx, MaxLoopPad, (OptoLoopAlignment-1),                          \
  69           "Align a loop if padding size in bytes is less or equal to this " \
  70           "value")                                                          \
  71           range(0, max_jint)                                                \
  72                                                                             \
  73   product(intx, MaxVectorSize, 64,                                          \
  74           "Max vector size in bytes, "                                      \
  75           "actual size could be less depending on elements type")           \
  76           range(0, max_jint)                                                \
  77                                                                             \
  78   product(bool, AlignVector, true,                                          \
  79           "Perform vector store/load alignment in loop")                    \
  80                                                                             \
  81   product(intx, NumberOfLoopInstrToAlign, 4,                                \
  82           "Number of first instructions in a loop to align")                \
  83           range(0, max_jint)                                                \
  84                                                                             \
  85   notproduct(intx, IndexSetWatch, 0,                                        \
  86           "Trace all operations on this IndexSet (-1 means all, 0 none)")   \
  87           range(-1, 0)                                                      \
  88                                                                             \
  89   develop(intx, OptoNodeListSize, 4,                                        \
  90           "Starting allocation size of Node_List data structures")          \
  91           range(0, max_jint)                                                \
  92                                                                             \
  93   develop(intx, OptoBlockListSize, 8,                                       \
  94           "Starting allocation size of Block_List data structures")         \
  95           range(0, max_jint)                                                \
  96                                                                             \
  97   develop(intx, OptoPeepholeAt, -1,                                         \
  98           "Apply peephole optimizations to this peephole rule")             \
  99                                                                             \
 100   notproduct(bool, PrintIdeal, false,                                       \
 101           "Print ideal graph before code generation")                       \
 102                                                                             \
 103   notproduct(bool, PrintOpto, false,                                        \
 104           "Print compiler2 attempts")                                       \
 105                                                                             \
 106   notproduct(bool, PrintOptoInlining, false,                                \
 107           "Print compiler2 inlining decisions")                             \
 108                                                                             \
 109   notproduct(bool, VerifyIdealNodeCount, false,                             \
 110           "Verify that tracked dead ideal node count is accurate")          \
 111                                                                             \
 112   notproduct(bool, PrintIdealNodeCount, false,                              \
 113           "Print liveness counts of ideal nodes")                           \
 114                                                                             \
 115   notproduct(bool, VerifyOptoOopOffsets, false,                             \
 116           "Check types of base addresses in field references")              \
 117                                                                             \
 118   develop(bool, IdealizedNumerics, false,                                   \
 119           "Check performance difference allowing FP "                       \
 120           "associativity and commutativity...")                             \
 121                                                                             \
 122   diagnostic_pd(bool, IdealizeClearArrayNode,                               \
 123           "Replace ClearArrayNode by subgraph of basic operations.")        \
 124                                                                             \
 125   develop(bool, OptoBreakpoint, false,                                      \
 126           "insert breakpoint at method entry")                              \
 127                                                                             \
 128   notproduct(bool, OptoBreakpointOSR, false,                                \
 129           "insert breakpoint at osr method entry")                          \
 130                                                                             \
 131   notproduct(intx, BreakAtNode, 0,                                          \
 132           "Break at construction of this Node (either _idx or _debug_idx)") \
 133                                                                             \
 134   notproduct(bool, OptoBreakpointC2R, false,                                \
 135           "insert breakpoint at runtime stub entry")                        \
 136                                                                             \
 137   notproduct(bool, OptoNoExecute, false,                                    \
 138           "Attempt to parse and compile but do not execute generated code") \
 139                                                                             \
 140   notproduct(bool, PrintOptoStatistics, false,                              \
 141           "Print New compiler statistics")                                  \
 142                                                                             \
 143   diagnostic(bool, PrintOptoAssembly, false,                                \
 144           "Print New compiler assembly output")                             \
 145                                                                             \
 146   develop_pd(bool, OptoPeephole,                                            \
 147           "Apply peephole optimizations after register allocation")         \
 148                                                                             \
 149   develop(bool, OptoRemoveUseless, true,                                    \
 150           "Remove useless nodes after parsing")                             \
 151                                                                             \
 152   notproduct(bool, PrintFrameConverterAssembly, false,                      \
 153           "Print New compiler assembly output for frame converters")        \
 154                                                                             \
 155   notproduct(bool, PrintParseStatistics, false,                             \
 156           "Print nodes, transforms and new values made per bytecode parsed")\
 157                                                                             \
 158   notproduct(bool, PrintOptoPeephole, false,                                \
 159           "Print New compiler peephole replacements")                       \
 160                                                                             \
 161   develop(bool, PrintCFGBlockFreq, false,                                   \
 162           "Print CFG block freqencies")                                     \
 163                                                                             \
 164   develop(bool, TraceOptoParse, false,                                      \
 165           "Trace bytecode parse and control-flow merge")                    \
 166                                                                             \
 167   product_pd(intx,  LoopUnrollLimit,                                        \
 168           "Unroll loop bodies with node count less than this")              \
 169           range(0, max_jint / 4)                                            \
 170                                                                             \
 171   product_pd(intx, LoopPercentProfileLimit,                                 \
 172              "Unroll loop bodies with % node count of profile limit")       \
 173              range(10, 100)                                                 \
 174                                                                             \
 175   product(intx,  LoopMaxUnroll, 16,                                         \
 176           "Maximum number of unrolls for main loop")                        \
 177           range(0, max_jint)                                                \
 178                                                                             \
 179   product_pd(bool,  SuperWordLoopUnrollAnalysis,                            \
 180            "Map number of unrolls for main loop via "                       \
 181            "Superword Level Parallelism analysis")                          \
 182                                                                             \
 183   experimental(bool, PostLoopMultiversioning, false,                        \
 184            "Multi versioned post loops to eliminate range checks")          \
 185                                                                             \
 186   notproduct(bool, TraceSuperWordLoopUnrollAnalysis, false,                 \
 187           "Trace what Superword Level Parallelism analysis applies")        \
 188                                                                             \
 189   diagnostic(bool, UseVectorMacroLogic, true,                               \
 190           "Use ternary macro logic instructions")                           \
 191                                                                             \
 192   product(intx,  LoopUnrollMin, 4,                                          \
 193           "Minimum number of unroll loop bodies before checking progress"   \
 194           "of rounds of unroll,optimize,..")                                \
 195           range(0, max_jint)                                                \
 196                                                                             \
 197   product(bool, UseSubwordForMaxVector, true,                               \
 198           "Use Subword Analysis to set maximum vector size")                \
 199                                                                             \
 200   product(bool, UseVectorCmov, false,                                       \
 201           "Use Vectorized Cmov")                                            \
 202                                                                             \
 203   develop(intx, UnrollLimitForProfileCheck, 1,                              \
 204           "Don't use profile_trip_cnt() to restrict unrolling until "       \
 205           "unrolling would push the number of unrolled iterations above "   \
 206           "UnrollLimitForProfileCheck. A higher value allows more "         \
 207           "unrolling. Zero acts as a very large value." )                   \
 208           range(0, max_intx)                                                \
 209                                                                             \
 210   product(intx, MultiArrayExpandLimit, 6,                                   \
 211           "Maximum number of individual allocations in an inline-expanded " \
 212           "multianewarray instruction")                                     \
 213           range(0, max_jint)                                                \
 214                                                                             \
 215   notproduct(bool, TraceProfileTripCount, false,                            \
 216           "Trace profile loop trip count information")                      \
 217                                                                             \
 218   product(bool, UseCountedLoopSafepoints, false,                            \
 219           "Force counted loops to keep a safepoint")                        \
 220                                                                             \
 221   product(bool, UseLoopPredicate, true,                                     \
 222           "Generate a predicate to select fast/slow loop versions")         \
 223                                                                             \
 224   develop(bool, TraceLoopPredicate, false,                                  \
 225           "Trace generation of loop predicates")                            \
 226                                                                             \
 227   develop(bool, TraceLoopOpts, false,                                       \
 228           "Trace executed loop optimizations")                              \
 229                                                                             \
 230   develop(bool, TraceLoopLimitCheck, false,                                 \
 231           "Trace generation of loop limits checks")                         \
 232                                                                             \
 233   develop(bool, TraceRangeLimitCheck, false,                                \
 234           "Trace additional overflow checks in RCE")                        \
 235                                                                             \
 236   /* OptimizeFill not yet supported on PowerPC. */                          \
 237   product(bool, OptimizeFill, true PPC64_ONLY(&& false),                    \
 238           "convert fill/copy loops into intrinsic")                         \
 239                                                                             \
 240   develop(bool, TraceOptimizeFill, false,                                   \
 241           "print detailed information about fill conversion")               \
 242                                                                             \
 243   develop(bool, OptoCoalesce, true,                                         \
 244           "Use Conservative Copy Coalescing in the Register Allocator")     \
 245                                                                             \
 246   develop(bool, UseUniqueSubclasses, true,                                  \
 247           "Narrow an abstract reference to the unique concrete subclass")   \
 248                                                                             \
 249   develop(bool, UseExactTypes, true,                                        \
 250           "Use exact types to eliminate array store checks and v-calls")    \
 251                                                                             \
 252   product(intx, TrackedInitializationLimit, 50,                             \
 253           "When initializing fields, track up to this many words")          \
 254           range(0, 65535)                                                   \
 255                                                                             \
 256   product(bool, ReduceFieldZeroing, true,                                   \
 257           "When initializing fields, try to avoid needless zeroing")        \
 258                                                                             \
 259   product(bool, ReduceInitialCardMarks, true,                               \
 260           "When initializing fields, try to avoid needless card marks")     \
 261                                                                             \
 262   product(bool, ReduceBulkZeroing, true,                                    \
 263           "When bulk-initializing, try to avoid needless zeroing")          \
 264                                                                             \
 265   product(bool, UseFPUForSpilling, false,                                   \
 266           "Spill integer registers to FPU instead of stack when possible")  \
 267                                                                             \
 268   develop_pd(intx, RegisterCostAreaRatio,                                   \
 269           "Spill selection in reg allocator: scale area by (X/64K) before " \
 270           "adding cost")                                                    \
 271                                                                             \
 272   develop_pd(bool, UseCISCSpill,                                            \
 273           "Use ADLC supplied cisc instructions during allocation")          \
 274                                                                             \
 275   notproduct(bool, VerifyGraphEdges , false,                                \
 276           "Verify Bi-directional Edges")                                    \
 277                                                                             \
 278   notproduct(bool, VerifyDUIterators, true,                                 \
 279           "Verify the safety of all iterations of Bi-directional Edges")    \
 280                                                                             \
 281   notproduct(bool, VerifyHashTableKeys, true,                               \
 282           "Verify the immutability of keys in the VN hash tables")          \
 283                                                                             \
 284   notproduct(bool, VerifyRegisterAllocator , false,                         \
 285           "Verify Register Allocator")                                      \
 286                                                                             \
 287   develop_pd(intx, FLOATPRESSURE,                                           \
 288           "Number of float LRG's that constitute high register pressure")   \
 289           range(0, max_jint)                                                \
 290                                                                             \
 291   develop_pd(intx, INTPRESSURE,                                             \
 292           "Number of integer LRG's that constitute high register pressure") \
 293           range(0, max_jint)                                                \
 294                                                                             \
 295   notproduct(bool, TraceOptoPipelining, false,                              \
 296           "Trace pipelining information")                                   \
 297                                                                             \
 298   notproduct(bool, TraceOptoOutput, false,                                  \
 299           "Trace pipelining information")                                   \
 300                                                                             \
 301   product_pd(bool, OptoScheduling,                                          \
 302           "Instruction Scheduling after register allocation")               \
 303                                                                             \
 304   product_pd(bool, OptoRegScheduling,                                       \
 305           "Instruction Scheduling before register allocation for pressure") \
 306                                                                             \
 307   product(bool, PartialPeelLoop, true,                                      \
 308           "Partial peel (rotate) loops")                                    \
 309                                                                             \
 310   product(intx, PartialPeelNewPhiDelta, 0,                                  \
 311           "Additional phis that can be created by partial peeling")         \
 312           range(0, max_jint)                                                \
 313                                                                             \
 314   notproduct(bool, TracePartialPeeling, false,                              \
 315           "Trace partial peeling (loop rotation) information")              \
 316                                                                             \
 317   product(bool, PartialPeelAtUnsignedTests, true,                           \
 318           "Partial peel at unsigned tests if no signed test exists")        \
 319                                                                             \
 320   product(bool, ReassociateInvariants, true,                                \
 321           "Enable reassociation of expressions with loop invariants.")      \
 322                                                                             \
 323   product(bool, LoopUnswitching, true,                                      \
 324           "Enable loop unswitching (a form of invariant test hoisting)")    \
 325                                                                             \
 326   notproduct(bool, TraceLoopUnswitching, false,                             \
 327           "Trace loop unswitching")                                         \
 328                                                                             \
 329   product(bool, AllowVectorizeOnDemand, true,                               \
 330           "Globally supress vectorization set in VectorizeMethod")          \
 331                                                                             \
 332   product(bool, UseSuperWord, true,                                         \
 333           "Transform scalar operations into superword operations")          \
 334                                                                             \
 335   develop(bool, SuperWordRTDepCheck, false,                                 \
 336           "Enable runtime dependency checks.")                              \
 337                                                                             \
 338   product(bool, SuperWordReductions, true,                                  \
 339           "Enable reductions support in superword.")                        \
 340                                                                             \
 341   product(bool, UseCMoveUnconditionally, false,                             \
 342           "Use CMove (scalar and vector) ignoring profitability test.")     \
 343                                                                             \
 344   product(bool, DoReserveCopyInSuperWord, true,                             \
 345           "Create reserve copy of graph in SuperWord.")                     \
 346                                                                             \
 347   notproduct(bool, TraceSuperWord, false,                                   \
 348           "Trace superword transforms")                                     \
 349                                                                             \
 350   notproduct(bool, TraceNewVectors, false,                                  \
 351           "Trace creation of Vector nodes")                                 \
 352                                                                             \
 353   product_pd(bool, OptoBundling,                                            \
 354           "Generate nops to fill i-cache lines")                            \
 355                                                                             \
 356   product_pd(intx, ConditionalMoveLimit,                                    \
 357           "Limit of ops to make speculative when using CMOVE")              \
 358           range(0, max_jint)                                                \
 359                                                                             \
 360   /* Set BranchOnRegister == false. See 4965987. */                         \
 361   product(bool, BranchOnRegister, false,                                    \
 362           "Use Sparc V9 branch-on-register opcodes")                        \
 363                                                                             \
 364   develop(bool, SparcV9RegsHiBitsZero, true,                                \
 365           "Assume Sparc V9 I&L registers on V8+ systems are zero-extended") \
 366                                                                             \
 367   product(bool, UseRDPCForConstantTableBase, false,                         \
 368           "Use Sparc RDPC instruction for the constant table base.")        \
 369                                                                             \
 370   notproduct(bool, PrintIdealGraph, false,                                  \
 371           "Print ideal graph to XML file / network interface. "             \
 372           "By default attempts to connect to the visualizer on a socket.")  \
 373                                                                             \
 374   notproduct(intx, PrintIdealGraphLevel, 0,                                 \
 375           "Level of detail of the ideal graph printout. "                   \
 376           "System-wide value, 0=nothing is printed, 4=all details printed. "\
 377           "Level of detail of printouts can be set on a per-method level "  \
 378           "as well by using CompileCommand=option.")                        \
 379           range(0, 4)                                                       \
 380                                                                             \
 381   notproduct(intx, PrintIdealGraphPort, 4444,                               \
 382           "Ideal graph printer to network port")                            \
 383           range(0, SHRT_MAX)                                                \
 384                                                                             \
 385   notproduct(ccstr, PrintIdealGraphAddress, "127.0.0.1",                    \
 386           "IP address to connect to visualizer")                            \
 387                                                                             \
 388   notproduct(ccstr, PrintIdealGraphFile, NULL,                              \
 389           "File to dump ideal graph to.  If set overrides the "             \
 390           "use of the network")                                             \
 391                                                                             \
 392   product(bool, UseBimorphicInlining, true,                                 \
 393           "Profiling based inlining for two receivers")                     \
 394                                                                             \
 395   product(bool, UseOnlyInlinedBimorphic, true,                              \
 396           "Don't use BimorphicInlining if can't inline a second method")    \
 397                                                                             \
 398   product(bool, InsertMemBarAfterArraycopy, true,                           \
 399           "Insert memory barrier after arraycopy call")                     \
 400                                                                             \
 401   develop(bool, SubsumeLoads, true,                                         \
 402           "Attempt to compile while subsuming loads into machine "          \
 403           "instructions.")                                                  \
 404                                                                             \
 405   develop(bool, StressRecompilation, false,                                 \
 406           "Recompile each compiled method without subsuming loads "         \
 407           "or escape analysis.")                                            \
 408                                                                             \
 409   develop(intx, ImplicitNullCheckThreshold, 3,                              \
 410           "Don't do implicit null checks if NPE's in a method exceeds "     \
 411           "limit")                                                          \
 412           range(0, max_jint)                                                \
 413                                                                             \
 414   product(intx, LoopOptsCount, 43,                                          \
 415           "Set level of loop optimization for tier 1 compiles")             \
 416           range(5, 43)                                                      \
 417                                                                             \
 418   /* controls for heat-based inlining */                                    \
 419                                                                             \
 420   develop(intx, NodeCountInliningCutoff, 18000,                             \
 421           "If parser node generation exceeds limit stop inlining")          \
 422           range(0, max_jint)                                                \
 423                                                                             \
 424   develop(intx, NodeCountInliningStep, 1000,                                \
 425           "Target size of warm calls inlined between optimization passes")  \
 426           range(0, max_jint)                                                \
 427                                                                             \
 428   develop(bool, InlineWarmCalls, false,                                     \
 429           "Use a heat-based priority queue to govern inlining")             \
 430                                                                             \
 431   /* Max values must not exceed WarmCallInfo::MAX_VALUE(). */               \
 432   develop(intx, HotCallCountThreshold, 999999,                              \
 433           "large numbers of calls (per method invocation) force hotness")   \
 434           range(0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))      \
 435                                                                             \
 436   develop(intx, HotCallProfitThreshold, 999999,                             \
 437           "highly profitable inlining opportunities force hotness")         \
 438           range(0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))      \
 439                                                                             \
 440   develop(intx, HotCallTrivialWork, -1,                                     \
 441           "trivial execution time (no larger than this) forces hotness")    \
 442           range(-1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))     \
 443                                                                             \
 444   develop(intx, HotCallTrivialSize, -1,                                     \
 445           "trivial methods (no larger than this) force calls to be hot")    \
 446           range(-1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))     \
 447                                                                             \
 448   develop(intx, WarmCallMinCount, -1,                                       \
 449           "number of calls (per method invocation) to enable inlining")     \
 450           range(-1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))     \
 451                                                                             \
 452   develop(intx, WarmCallMinProfit, -1,                                      \
 453           "number of calls (per method invocation) to enable inlining")     \
 454           range(-1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))     \
 455                                                                             \
 456   develop(intx, WarmCallMaxWork, 999999,                                    \
 457           "execution time of the largest inlinable method")                 \
 458           range(0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))      \
 459                                                                             \
 460   develop(intx, WarmCallMaxSize, 999999,                                    \
 461           "size of the largest inlinable method")                           \
 462           range(0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))))      \
 463                                                                             \
 464   product(intx, MaxNodeLimit, 80000,                                        \
 465           "Maximum number of nodes")                                        \
 466           range(1000, max_jint / 3)                                         \
 467                                                                             \
 468   product(intx, NodeLimitFudgeFactor, 2000,                                 \
 469           "Fudge Factor for certain optimizations")                         \
 470           constraint(NodeLimitFudgeFactorConstraintFunc, AfterErgo)         \
 471                                                                             \
 472   product(bool, UseJumpTables, true,                                        \
 473           "Use JumpTables instead of a binary search tree for switches")    \
 474                                                                             \
 475   product(bool, UseDivMod, true,                                            \
 476           "Use combined DivMod instruction if available")                   \
 477                                                                             \
 478   product_pd(intx, MinJumpTableSize,                                        \
 479           "Minimum number of targets in a generated jump table")            \
 480           range(0, max_intx)                                                \
 481                                                                             \
 482   product(intx, MaxJumpTableSize, 65000,                                    \
 483           "Maximum number of targets in a generated jump table")            \
 484           range(0, max_intx)                                                \
 485                                                                             \
 486   product(intx, MaxJumpTableSparseness, 5,                                  \
 487           "Maximum sparseness for jumptables")                              \
 488           range(0, max_intx / 4)                                            \
 489                                                                             \
 490   product(bool, EliminateLocks, true,                                       \
 491           "Coarsen locks when possible")                                    \
 492                                                                             \
 493   product(bool, EliminateNestedLocks, true,                                 \
 494           "Eliminate nested locks of the same object when possible")        \
 495                                                                             \
 496   notproduct(bool, PrintLockStatistics, false,                              \
 497           "Print precise statistics on the dynamic lock usage")             \
 498                                                                             \
 499   diagnostic(bool, PrintPreciseBiasedLockingStatistics, false,              \
 500           "Print per-lock-site statistics of biased locking in JVM")        \
 501                                                                             \
 502   diagnostic(bool, PrintPreciseRTMLockingStatistics, false,                 \
 503           "Print per-lock-site statistics of rtm locking in JVM")           \
 504                                                                             \
 505   notproduct(bool, PrintEliminateLocks, false,                              \
 506           "Print out when locks are eliminated")                            \
 507                                                                             \
 508   product(bool, EliminateAutoBox, true,                                     \
 509           "Control optimizations for autobox elimination")                  \
 510                                                                             \
 511   product(intx, AutoBoxCacheMax, 128,                                       \
 512           "Sets max value cached by the java.lang.Integer autobox cache")   \
 513           range(0, max_jint)                                                \
 514                                                                             \
 515   diagnostic(bool, AggressiveUnboxing, true,                                \
 516           "Control optimizations for aggressive boxing elimination")        \
 517                                                                             \
 518   develop(bool, TracePostallocExpand, false, "Trace expanding nodes after"  \
 519           " register allocation.")                                          \
 520                                                                             \
 521   product(bool, DoEscapeAnalysis, true,                                     \
 522           "Perform escape analysis")                                        \
 523                                                                             \
 524   product(double, EscapeAnalysisTimeout, 20. DEBUG_ONLY(+40.),              \
 525           "Abort EA when it reaches time limit (in sec)")                   \
 526           range(0, DBL_MAX)                                                 \
 527                                                                             \
 528   develop(bool, ExitEscapeAnalysisOnTimeout, true,                          \
 529           "Exit or throw assert in EA when it reaches time limit")          \
 530                                                                             \
 531   notproduct(bool, PrintEscapeAnalysis, false,                              \
 532           "Print the results of escape analysis")                           \
 533                                                                             \
 534   product(bool, EliminateAllocations, true,                                 \
 535           "Use escape analysis to eliminate allocations")                   \
 536                                                                             \
 537   notproduct(bool, PrintEliminateAllocations, false,                        \
 538           "Print out when allocations are eliminated")                      \
 539                                                                             \
 540   product(intx, EliminateAllocationArraySizeLimit, 64,                      \
 541           "Array size (number of elements) limit for scalar replacement")   \
 542           range(0, max_jint)                                                \
 543                                                                             \
 544   product(bool, OptimizePtrCompare, true,                                   \
 545           "Use escape analysis to optimize pointers compare")               \
 546                                                                             \
 547   notproduct(bool, PrintOptimizePtrCompare, false,                          \
 548           "Print information about optimized pointers compare")             \
 549                                                                             \
 550   notproduct(bool, VerifyConnectionGraph , true,                            \
 551           "Verify Connection Graph construction in Escape Analysis")        \
 552                                                                             \
 553   product(bool, UseOptoBiasInlining, true,                                  \
 554           "Generate biased locking code in C2 ideal graph")                 \
 555                                                                             \
 556   product(bool, OptimizeStringConcat, true,                                 \
 557           "Optimize the construction of Strings by StringBuilder")          \
 558                                                                             \
 559   notproduct(bool, PrintOptimizeStringConcat, false,                        \
 560           "Print information about transformations performed on Strings")   \
 561                                                                             \
 562   product(intx, ValueSearchLimit, 1000,                                     \
 563           "Recursion limit in PhaseMacroExpand::value_from_mem_phi")        \
 564           range(0, max_jint)                                                \
 565                                                                             \
 566   product(intx, MaxLabelRootDepth, 1100,                                    \
 567           "Maximum times call Label_Root to prevent stack overflow")        \
 568           range(100, max_jint)                                              \
 569                                                                             \
 570   diagnostic(intx, DominatorSearchLimit, 1000,                              \
 571           "Iterations limit in Node::dominates")                            \
 572           range(0, max_jint)                                                \
 573                                                                             \
 574   product(bool, BlockLayoutByFrequency, true,                               \
 575           "Use edge frequencies to drive block ordering")                   \
 576                                                                             \
 577   product(intx, BlockLayoutMinDiamondPercentage, 20,                        \
 578           "Miniumum %% of a successor (predecessor) for which block "       \
 579           "layout a will allow a fork (join) in a single chain")            \
 580           range(0, 100)                                                     \
 581                                                                             \
 582   product(bool, BlockLayoutRotateLoops, true,                               \
 583           "Allow back branches to be fall throughs in the block layout")    \
 584                                                                             \
 585   diagnostic(bool, InlineReflectionGetCallerClass, true,                    \
 586           "inline sun.reflect.Reflection.getCallerClass(), known to be "    \
 587           "part of base library DLL")                                       \
 588                                                                             \
 589   diagnostic(bool, InlineObjectCopy, true,                                  \
 590           "inline Object.clone and Arrays.copyOf[Range] intrinsics")        \
 591                                                                             \
 592   diagnostic(bool, SpecialStringCompareTo, true,                            \
 593           "special version of string compareTo")                            \
 594                                                                             \
 595   diagnostic(bool, SpecialStringIndexOf, true,                              \
 596           "special version of string indexOf")                              \
 597                                                                             \
 598   diagnostic(bool, SpecialStringEquals, true,                               \
 599           "special version of string equals")                               \
 600                                                                             \
 601   diagnostic(bool, SpecialArraysEquals, true,                               \
 602           "special version of Arrays.equals(char[],char[])")                \
 603                                                                             \
 604   diagnostic(bool, SpecialEncodeISOArray, true,                             \
 605           "special version of ISO_8859_1$Encoder.encodeISOArray")           \
 606                                                                             \
 607   develop(bool, BailoutToInterpreterForThrows, false,                       \
 608           "Compiled methods which throws/catches exceptions will be "       \
 609           "deopt and intp.")                                                \
 610                                                                             \
 611   develop(bool, ConvertCmpD2CmpF, true,                                     \
 612           "Convert cmpD to cmpF when one input is constant in float range") \
 613                                                                             \
 614   develop(bool, ConvertFloat2IntClipping, true,                             \
 615           "Convert float2int clipping idiom to integer clipping")           \
 616                                                                             \
 617   develop(bool, MonomorphicArrayCheck, true,                                \
 618           "Uncommon-trap array store checks that require full type check")  \
 619                                                                             \
 620   notproduct(bool, TracePhaseCCP, false,                                    \
 621           "Print progress during Conditional Constant Propagation")         \
 622                                                                             \
 623   develop(bool, PrintDominators, false,                                     \
 624           "Print out dominator trees for GVN")                              \
 625                                                                             \
 626   diagnostic(bool, TraceSpilling, false,                                    \
 627           "Trace spilling")                                                 \
 628                                                                             \
 629   diagnostic(bool, TraceTypeProfile, false,                                 \
 630           "Trace type profile")                                             \
 631                                                                             \
 632   develop(bool, PoisonOSREntry, true,                                       \
 633            "Detect abnormal calls to OSR code")                             \
 634                                                                             \
 635   develop(bool, SoftMatchFailure, trueInProduct,                            \
 636           "If the DFA fails to match a node, print a message and bail out") \
 637                                                                             \
 638   develop(bool, InlineAccessors, true,                                      \
 639           "inline accessor methods (get/set)")                              \
 640                                                                             \
 641   product(intx, TypeProfileMajorReceiverPercent, 90,                        \
 642           "% of major receiver type to all profiled receivers")             \
 643           range(0, 100)                                                     \
 644                                                                             \
 645   diagnostic(bool, PrintIntrinsics, false,                                  \
 646           "prints attempted and successful inlining of intrinsics")         \
 647                                                                             \
 648   develop(bool, StressReflectiveCode, false,                                \
 649           "Use inexact types at allocations, etc., to test reflection")     \
 650                                                                             \
 651   diagnostic(bool, DebugInlinedCalls, true,                                 \
 652          "If false, restricts profiled locations to the root method only")  \
 653                                                                             \
 654   notproduct(bool, VerifyLoopOptimizations, false,                          \
 655           "verify major loop optimizations")                                \
 656                                                                             \
 657   diagnostic(bool, ProfileDynamicTypes, true,                               \
 658           "do extra type profiling and use it more aggressively")           \
 659                                                                             \
 660   develop(bool, TraceIterativeGVN, false,                                   \
 661           "Print progress during Iterative Global Value Numbering")         \
 662                                                                             \
 663   develop(bool, VerifyIterativeGVN, false,                                  \
 664           "Verify Def-Use modifications during sparse Iterative Global "    \
 665           "Value Numbering")                                                \
 666                                                                             \
 667   notproduct(bool, TraceCISCSpill, false,                                   \
 668           "Trace allocators use of cisc spillable instructions")            \
 669                                                                             \
 670   product(bool, SplitIfBlocks, true,                                        \
 671           "Clone compares and control flow through merge points to fold "   \
 672           "some branches")                                                  \
 673                                                                             \
 674   develop(intx, FreqCountInvocations,  1,                                   \
 675           "Scaling factor for branch frequencies (deprecated)")             \
 676           range(1, max_intx)                                                \
 677                                                                             \
 678   product(intx, AliasLevel,     3,                                          \
 679           "0 for no aliasing, 1 for oop/field/static/array split, "         \
 680           "2 for class split, 3 for unique instances")                      \
 681           range(0, 3)                                                       \
 682           constraint(AliasLevelConstraintFunc,AfterErgo)                    \
 683                                                                             \
 684   develop(bool, VerifyAliases, false,                                       \
 685           "perform extra checks on the results of alias analysis")          \
 686                                                                             \
 687   product(bool, IncrementalInline, true,                                    \
 688           "do post parse inlining")                                         \
 689                                                                             \
 690   develop(bool, AlwaysIncrementalInline, false,                             \
 691           "do all inlining incrementally")                                  \
 692                                                                             \
 693   product(intx, LiveNodeCountInliningCutoff, 40000,                         \
 694           "max number of live nodes in a method")                           \
 695           range(0, max_juint / 8)                                           \
 696                                                                             \
 697   diagnostic(bool, OptimizeExpensiveOps, true,                              \
 698           "Find best control for expensive operations")                     \
 699                                                                             \
 700   diagnostic(bool, UseMathExactIntrinsics, true,                            \
 701           "Enables intrinsification of various java.lang.Math functions")   \
 702                                                                             \
 703   diagnostic(bool, UseCharacterCompareIntrinsics, false,                    \
 704           "Enables intrinsification of java.lang.Character functions")      \
 705                                                                             \
 706   diagnostic(bool, UseMultiplyToLenIntrinsic, false,                        \
 707           "Enables intrinsification of BigInteger.multiplyToLen()")         \
 708                                                                             \
 709   diagnostic(bool, UseSquareToLenIntrinsic, false,                          \
 710           "Enables intrinsification of BigInteger.squareToLen()")           \
 711                                                                             \
 712   diagnostic(bool, UseMulAddIntrinsic, false,                               \
 713           "Enables intrinsification of BigInteger.mulAdd()")                \
 714                                                                             \
 715   diagnostic(bool, UseMontgomeryMultiplyIntrinsic, false,                   \
 716           "Enables intrinsification of BigInteger.montgomeryMultiply()")    \
 717                                                                             \
 718   diagnostic(bool, UseMontgomerySquareIntrinsic, false,                     \
 719           "Enables intrinsification of BigInteger.montgomerySquare()")      \
 720                                                                             \
 721   product(bool, UseTypeSpeculation, true,                                   \
 722           "Speculatively propagate types from profiles")                    \
 723                                                                             \
 724   diagnostic(bool, UseInlineDepthForSpeculativeTypes, true,                 \
 725           "Carry inline depth of profile point with speculative type "      \
 726           "and give priority to profiling from lower inline depth")         \
 727                                                                             \
 728   product_pd(bool, TrapBasedRangeChecks,                                    \
 729           "Generate code for range checks that uses a cmp and trap "        \
 730           "instruction raising SIGTRAP. Used on PPC64.")                    \
 731                                                                             \
 732   product(intx, ArrayCopyLoadStoreMaxElem, 8,                               \
 733           "Maximum number of arraycopy elements inlined as a sequence of"   \
 734           "loads/stores")                                                   \
 735           range(0, max_intx)                                                \
 736                                                                             \
 737   develop(bool, StressArrayCopyMacroNode, false,                            \
 738           "Perform ArrayCopy load/store replacement during IGVN only")      \
 739                                                                             \
 740   develop(bool, RenumberLiveNodes, true,                                    \
 741           "Renumber live nodes")                                            \
 742                                                                             \
 743   product(uintx, LoopStripMiningIter, 0,                                    \
 744           "Number of iterations in strip mined loop")                       \
 745           range(0, max_juint)                                               \
 746                                                                             \
 747   product(uintx, LoopStripMiningIterShortLoop, 0,                           \
 748           "Loop with fewer iterations are not strip mined")                 \
 749           range(0, max_juint)                                               \
 750                                                                             \
 751   product(bool, UseProfiledLoopPredicate, true,                             \
 752           "Move predicates out of loops based on profiling data")           \
 753                                                                             \
 754   diagnostic(bool, ExpandSubTypeCheckAtParseTime, false,                    \
 755           "Do not use subtype check macro node")                            \
 756 



 757 #endif // SHARE_OPTO_C2_GLOBALS_HPP


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_OPTO_C2_GLOBALS_HPP
  26 #define SHARE_OPTO_C2_GLOBALS_HPP
  27 
  28 #include "runtime/flags/jvmFlagConstraintsCompiler.hpp"
  29 #include "runtime/globals_shared.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 #include CPU_HEADER(c2_globals)
  33 #include OS_HEADER(c2_globals)
  34 
  35 extern "C" intx OptoLoopAlignment; // declared in globals.hpp
  36 
  37 //
  38 // Declare all globals flags used by the server compiler.
  39 //
  40 
  41 #include "utilities/macros.hpp"
  42 #if COMPILER2
  43 #include "runtime/flags/jvmFlag.hpp"
  44 PRODUCT_FLAG(bool,     StressLCM, false, JVMFlag::DIAGNOSTIC,
  45                        "Randomize instruction scheduling in LCM");
  46 
  47 PRODUCT_FLAG(bool,     StressGCM, false, JVMFlag::DIAGNOSTIC,
  48                        "Randomize instruction scheduling in GCM");
  49 
  50 DEVELOP_FLAG(bool,     StressMethodHandleLinkerInlining, false, JVMFlag::DEFAULT,
  51                        "Stress inlining through method handle linkers");
  52 
  53 DEVELOP_FLAG(intx,     OptoPrologueNops, 0, JVMFlag::RANGE,
  54                        "Insert this many extra nop instructions "
  55                        "in the prologue of every nmethod");
  56    FLAG_RANGE(         OptoPrologueNops, 0, 128);
  57 
  58 PRODUCT_FLAG_PD(intx,  InteriorEntryAlignment, JVMFlag::CONSTRAINT,
  59                        "Code alignment for interior entry points "
  60                        "in generated code (in bytes)");
  61    FLAG_CONSTRAINT(    InteriorEntryAlignment, (void*)InteriorEntryAlignmentConstraintFunc, JVMFlag::AfterErgo);
  62 
  63 PRODUCT_FLAG(intx,     MaxLoopPad, (OptoLoopAlignment-1), JVMFlag::RANGE,
  64                        "Align a loop if padding size in bytes is less or equal to this "
  65                        "value");
  66    FLAG_RANGE(         MaxLoopPad, 0, max_jint);
  67 
  68 PRODUCT_FLAG(intx,     MaxVectorSize, 64, JVMFlag::RANGE,
  69                        "Max vector size in bytes, "
  70                        "actual size could be less depending on elements type");
  71    FLAG_RANGE(         MaxVectorSize, 0, max_jint);
  72 
  73 PRODUCT_FLAG(bool,     AlignVector, true, JVMFlag::DEFAULT,
  74                        "Perform vector store/load alignment in loop");
  75 
  76 PRODUCT_FLAG(intx,     NumberOfLoopInstrToAlign, 4, JVMFlag::RANGE,
  77                        "Number of first instructions in a loop to align");
  78    FLAG_RANGE(         NumberOfLoopInstrToAlign, 0, max_jint);
  79 
  80 NOTPROD_FLAG(intx,     IndexSetWatch, 0, JVMFlag::RANGE,
  81                        "Trace all operations on this IndexSet (-1 means all, 0 none)");
  82    FLAG_RANGE(         IndexSetWatch, -1, 0);
  83 
  84 DEVELOP_FLAG(intx,     OptoNodeListSize, 4, JVMFlag::RANGE,
  85                        "Starting allocation size of Node_List data structures");
  86    FLAG_RANGE(         OptoNodeListSize, 0, max_jint);
  87 
  88 DEVELOP_FLAG(intx,     OptoBlockListSize, 8, JVMFlag::RANGE,
  89                        "Starting allocation size of Block_List data structures");
  90    FLAG_RANGE(         OptoBlockListSize, 0, max_jint);
  91 
  92 DEVELOP_FLAG(intx,     OptoPeepholeAt, -1, JVMFlag::DEFAULT,
  93                        "Apply peephole optimizations to this peephole rule");
  94 
  95 NOTPROD_FLAG(bool,     PrintIdeal, false, JVMFlag::DEFAULT,
  96                        "Print ideal graph before code generation");
  97 
  98 DEVELOP_FLAG(bool,     PrintOpto, false, JVMFlag::DEFAULT,
  99                        "Print compiler2 attempts");
 100 
 101 DEVELOP_FLAG(bool,     PrintOptoInlining, false, JVMFlag::DEFAULT,
 102                        "Print compiler2 inlining decisions");
 103 
 104 NOTPROD_FLAG(bool,     VerifyIdealNodeCount, false, JVMFlag::DEFAULT,
 105                        "Verify that tracked dead ideal node count is accurate");
 106 
 107 NOTPROD_FLAG(bool,     PrintIdealNodeCount, false, JVMFlag::DEFAULT,
 108                        "Print liveness counts of ideal nodes");
 109 
 110 NOTPROD_FLAG(bool,     VerifyOptoOopOffsets, false, JVMFlag::DEFAULT,
 111                        "Check types of base addresses in field references");
 112 
 113 DEVELOP_FLAG(bool,     IdealizedNumerics, false, JVMFlag::DEFAULT,
 114                        "Check performance difference allowing FP "
 115                        "associativity and commutativity...");
 116 
 117 PRODUCT_FLAG_PD(bool,  IdealizeClearArrayNode, JVMFlag::DIAGNOSTIC,
 118                        "Replace ClearArrayNode by subgraph of basic operations.");
 119 
 120 DEVELOP_FLAG(bool,     OptoBreakpoint, false, JVMFlag::DEFAULT,
 121                        "insert breakpoint at method entry");
 122 
 123 DEVELOP_FLAG(bool,     OptoBreakpointOSR, false, JVMFlag::DEFAULT,
 124                        "insert breakpoint at osr method entry");
 125 
 126 NOTPROD_FLAG(intx,     BreakAtNode, 0, JVMFlag::DEFAULT,
 127                        "Break at construction of this Node (either _idx or _debug_idx)");
 128 
 129 DEVELOP_FLAG(bool,     OptoBreakpointC2R, false, JVMFlag::DEFAULT,
 130                        "insert breakpoint at runtime stub entry");
 131 
 132 NOTPROD_FLAG(bool,     OptoNoExecute, false, JVMFlag::DEFAULT,
 133                        "Attempt to parse and compile but do not execute generated code");
 134 
 135 NOTPROD_FLAG(bool,     PrintOptoStatistics, false, JVMFlag::DEFAULT,
 136                        "Print New compiler statistics");
 137 
 138 PRODUCT_FLAG(bool,     PrintOptoAssembly, false, JVMFlag::DIAGNOSTIC,
 139                        "Print New compiler assembly output");
 140 
 141 DEVELOP_FLAG_PD(bool,  OptoPeephole, JVMFlag::DEFAULT,
 142                        "Apply peephole optimizations after register allocation");
 143 
 144 DEVELOP_FLAG(bool,     OptoRemoveUseless, true, JVMFlag::DEFAULT,
 145                        "Remove useless nodes after parsing");
 146 
 147 NOTPROD_FLAG(bool,     PrintFrameConverterAssembly, false, JVMFlag::DEFAULT,
 148                        "Print New compiler assembly output for frame converters");
 149 
 150 NOTPROD_FLAG(bool,     PrintParseStatistics, false, JVMFlag::DEFAULT,
 151                        "Print nodes, transforms and new values made per bytecode parsed");
 152 
 153 NOTPROD_FLAG(bool,     PrintOptoPeephole, false, JVMFlag::DEFAULT,
 154                        "Print New compiler peephole replacements");
 155 
 156 DEVELOP_FLAG(bool,     PrintCFGBlockFreq, false, JVMFlag::DEFAULT,
 157                        "Print CFG block freqencies");
 158 
 159 DEVELOP_FLAG(bool,     TraceOptoParse, false, JVMFlag::DEFAULT,
 160                        "Trace bytecode parse and control-flow merge");
 161 
 162 PRODUCT_FLAG_PD(intx,  LoopUnrollLimit, JVMFlag::RANGE,
 163                        "Unroll loop bodies with node count less than this");
 164    FLAG_RANGE(         LoopUnrollLimit, 0, max_jint / 4);
 165 
 166 PRODUCT_FLAG_PD(intx,  LoopPercentProfileLimit, JVMFlag::RANGE,
 167                        "Unroll loop bodies with % node count of profile limit");
 168    FLAG_RANGE(         LoopPercentProfileLimit, 10, 100);
 169 
 170 PRODUCT_FLAG(intx,     LoopMaxUnroll, 16, JVMFlag::RANGE,
 171                        "Maximum number of unrolls for main loop");
 172    FLAG_RANGE(         LoopMaxUnroll, 0, max_jint);
 173 
 174 PRODUCT_FLAG_PD(bool,  SuperWordLoopUnrollAnalysis, JVMFlag::DEFAULT,
 175                        "Map number of unrolls for main loop via "
 176                        "Superword Level Parallelism analysis");
 177 
 178 PRODUCT_FLAG(bool,     PostLoopMultiversioning, false, JVMFlag::EXPERIMENTAL,
 179                        "Multi versioned post loops to eliminate range checks");
 180 
 181 DEVELOP_FLAG(bool,     TraceSuperWordLoopUnrollAnalysis, false, JVMFlag::DEFAULT,
 182                        "Trace what Superword Level Parallelism analysis applies");
 183 
 184 PRODUCT_FLAG(bool,     UseVectorMacroLogic, true, JVMFlag::DIAGNOSTIC,
 185                        "Use ternary macro logic instructions");
 186 
 187 PRODUCT_FLAG(intx,     LoopUnrollMin, 4, JVMFlag::RANGE,
 188                        "Minimum number of unroll loop bodies before checking progress"
 189                        "of rounds of unroll,optimize,..");
 190    FLAG_RANGE(         LoopUnrollMin, 0, max_jint);
 191 
 192 PRODUCT_FLAG(bool,     UseSubwordForMaxVector, true, JVMFlag::DEFAULT,
 193                        "Use Subword Analysis to set maximum vector size");
 194 
 195 PRODUCT_FLAG(bool,     UseVectorCmov, false, JVMFlag::DEFAULT,
 196                        "Use Vectorized Cmov");
 197 
 198 DEVELOP_FLAG(intx,     UnrollLimitForProfileCheck, 1, JVMFlag::RANGE,
 199                        "Don't use profile_trip_cnt() to restrict unrolling until "
 200                        "unrolling would push the number of unrolled iterations above "
 201                        "UnrollLimitForProfileCheck. A higher value allows more "
 202                        "unrolling. Zero acts as a very large value.");
 203    FLAG_RANGE(         UnrollLimitForProfileCheck, 0, max_intx);
 204 
 205 PRODUCT_FLAG(intx,     MultiArrayExpandLimit, 6, JVMFlag::RANGE,
 206                        "Maximum number of individual allocations in an inline-expanded "
 207                        "multianewarray instruction");
 208    FLAG_RANGE(         MultiArrayExpandLimit, 0, max_jint);
 209 
 210 NOTPROD_FLAG(bool,     TraceProfileTripCount, false, JVMFlag::DEFAULT,
 211                        "Trace profile loop trip count information");
 212 
 213 PRODUCT_FLAG(bool,     UseCountedLoopSafepoints, false, JVMFlag::DEFAULT,
 214                        "Force counted loops to keep a safepoint");
 215 
 216 PRODUCT_FLAG(bool,     UseLoopPredicate, true, JVMFlag::DEFAULT,
 217                        "Generate a predicate to select fast/slow loop versions");
 218 
 219 DEVELOP_FLAG(bool,     TraceLoopPredicate, false, JVMFlag::DEFAULT,
 220                        "Trace generation of loop predicates");
 221 
 222 DEVELOP_FLAG(bool,     TraceLoopOpts, false, JVMFlag::DEFAULT,
 223                        "Trace executed loop optimizations");
 224 
 225 DEVELOP_FLAG(bool,     TraceLoopLimitCheck, false, JVMFlag::DEFAULT,
 226                        "Trace generation of loop limits checks");
 227 
 228 DEVELOP_FLAG(bool,     TraceRangeLimitCheck, false, JVMFlag::DEFAULT,
 229                        "Trace additional overflow checks in RCE");
 230 
 231 
 232     //  OptimizeFill not yet supported on PowerPC. 
 233 PRODUCT_FLAG(bool,     OptimizeFill, true PPC64_ONLY(&& false), JVMFlag::DEFAULT,
 234                        "convert fill/copy loops into intrinsic");
 235 
 236 DEVELOP_FLAG(bool,     TraceOptimizeFill, false, JVMFlag::DEFAULT,
 237                        "print detailed information about fill conversion");
 238 
 239 DEVELOP_FLAG(bool,     OptoCoalesce, true, JVMFlag::DEFAULT,
 240                        "Use Conservative Copy Coalescing in the Register Allocator");
 241 
 242 DEVELOP_FLAG(bool,     UseUniqueSubclasses, true, JVMFlag::DEFAULT,
 243                        "Narrow an abstract reference to the unique concrete subclass");
 244 
 245 DEVELOP_FLAG(bool,     UseExactTypes, true, JVMFlag::DEFAULT,
 246                        "Use exact types to eliminate array store checks and v-calls");
 247 
 248 PRODUCT_FLAG(intx,     TrackedInitializationLimit, 50, JVMFlag::RANGE,
 249                        "When initializing fields, track up to this many words");
 250    FLAG_RANGE(         TrackedInitializationLimit, 0, 65535);
 251 
 252 PRODUCT_FLAG(bool,     ReduceFieldZeroing, true, JVMFlag::DEFAULT,
 253                        "When initializing fields, try to avoid needless zeroing");
 254 
 255 PRODUCT_FLAG(bool,     ReduceInitialCardMarks, true, JVMFlag::DEFAULT,
 256                        "When initializing fields, try to avoid needless card marks");
 257 
 258 PRODUCT_FLAG(bool,     ReduceBulkZeroing, true, JVMFlag::DEFAULT,
 259                        "When bulk-initializing, try to avoid needless zeroing");
 260 
 261 PRODUCT_FLAG(bool,     UseFPUForSpilling, false, JVMFlag::DEFAULT,
 262                        "Spill integer registers to FPU instead of stack when possible");
 263 
 264 DEVELOP_FLAG_PD(intx,  RegisterCostAreaRatio, JVMFlag::DEFAULT,
 265                        "Spill selection in reg allocator: scale area by (X/64K) before "
 266                        "adding cost");
 267 
 268 DEVELOP_FLAG_PD(bool,  UseCISCSpill, JVMFlag::DEFAULT,
 269                        "Use ADLC supplied cisc instructions during allocation");
 270 
 271 NOTPROD_FLAG(bool,     VerifyGraphEdges, false, JVMFlag::DEFAULT,
 272                        "Verify Bi-directional Edges");
 273 
 274 NOTPROD_FLAG(bool,     VerifyDUIterators, true, JVMFlag::DEFAULT,
 275                        "Verify the safety of all iterations of Bi-directional Edges");
 276 
 277 NOTPROD_FLAG(bool,     VerifyHashTableKeys, true, JVMFlag::DEFAULT,
 278                        "Verify the immutability of keys in the VN hash tables");
 279 
 280 NOTPROD_FLAG(bool,     VerifyRegisterAllocator, false, JVMFlag::DEFAULT,
 281                        "Verify Register Allocator");
 282 
 283 DEVELOP_FLAG_PD(intx,  FLOATPRESSURE, JVMFlag::RANGE,
 284                        "Number of float LRG's that constitute high register pressure");
 285    FLAG_RANGE(         FLOATPRESSURE, 0, max_jint);
 286 
 287 DEVELOP_FLAG_PD(intx,  INTPRESSURE, JVMFlag::RANGE,
 288                        "Number of integer LRG's that constitute high register pressure");
 289    FLAG_RANGE(         INTPRESSURE, 0, max_jint);
 290 
 291 NOTPROD_FLAG(bool,     TraceOptoPipelining, false, JVMFlag::DEFAULT,
 292                        "Trace pipelining information");
 293 
 294 NOTPROD_FLAG(bool,     TraceOptoOutput, false, JVMFlag::DEFAULT,
 295                        "Trace pipelining information");
 296 
 297 PRODUCT_FLAG_PD(bool,  OptoScheduling, JVMFlag::DEFAULT,
 298                        "Instruction Scheduling after register allocation");
 299 
 300 PRODUCT_FLAG_PD(bool,  OptoRegScheduling, JVMFlag::DEFAULT,
 301                        "Instruction Scheduling before register allocation for pressure");
 302 
 303 PRODUCT_FLAG(bool,     PartialPeelLoop, true, JVMFlag::DEFAULT,
 304                        "Partial peel (rotate) loops");
 305 
 306 PRODUCT_FLAG(intx,     PartialPeelNewPhiDelta, 0, JVMFlag::RANGE,
 307                        "Additional phis that can be created by partial peeling");
 308    FLAG_RANGE(         PartialPeelNewPhiDelta, 0, max_jint);
 309 
 310 NOTPROD_FLAG(bool,     TracePartialPeeling, false, JVMFlag::DEFAULT,
 311                        "Trace partial peeling (loop rotation) information");
 312 
 313 PRODUCT_FLAG(bool,     PartialPeelAtUnsignedTests, true, JVMFlag::DEFAULT,
 314                        "Partial peel at unsigned tests if no signed test exists");
 315 
 316 PRODUCT_FLAG(bool,     ReassociateInvariants, true, JVMFlag::DEFAULT,
 317                        "Enable reassociation of expressions with loop invariants.");
 318 
 319 PRODUCT_FLAG(bool,     LoopUnswitching, true, JVMFlag::DEFAULT,
 320                        "Enable loop unswitching (a form of invariant test hoisting)");
 321 
 322 NOTPROD_FLAG(bool,     TraceLoopUnswitching, false, JVMFlag::DEFAULT,
 323                        "Trace loop unswitching");
 324 
 325 PRODUCT_FLAG(bool,     AllowVectorizeOnDemand, true, JVMFlag::DEFAULT,
 326                        "Globally supress vectorization set in VectorizeMethod");
 327 
 328 PRODUCT_FLAG(bool,     UseSuperWord, true, JVMFlag::DEFAULT,
 329                        "Transform scalar operations into superword operations");
 330 
 331 DEVELOP_FLAG(bool,     SuperWordRTDepCheck, false, JVMFlag::DEFAULT,
 332                        "Enable runtime dependency checks.");
 333 
 334 PRODUCT_FLAG(bool,     SuperWordReductions, true, JVMFlag::DEFAULT,
 335                        "Enable reductions support in superword.");
 336 
 337 PRODUCT_FLAG(bool,     UseCMoveUnconditionally, false, JVMFlag::DEFAULT,
 338                        "Use CMove (scalar and vector) ignoring profitability test.");
 339 
 340 PRODUCT_FLAG(bool,     DoReserveCopyInSuperWord, true, JVMFlag::DEFAULT,
 341                        "Create reserve copy of graph in SuperWord.");
 342 
 343 DEVELOP_FLAG(bool,     TraceSuperWord, false, JVMFlag::DEFAULT,
 344                        "Trace superword transforms");
 345 
 346 NOTPROD_FLAG(bool,     TraceNewVectors, false, JVMFlag::DEFAULT,
 347                        "Trace creation of Vector nodes");
 348 
 349 PRODUCT_FLAG_PD(bool,  OptoBundling, JVMFlag::DEFAULT,
 350                        "Generate nops to fill i-cache lines");
 351 
 352 PRODUCT_FLAG_PD(intx,  ConditionalMoveLimit, JVMFlag::RANGE,
 353                        "Limit of ops to make speculative when using CMOVE");
 354    FLAG_RANGE(         ConditionalMoveLimit, 0, max_jint);
 355 
 356 
 357     //  Set BranchOnRegister == false. See 4965987. 
 358 PRODUCT_FLAG(bool,     BranchOnRegister, false, JVMFlag::DEFAULT,
 359                        "Use Sparc V9 branch-on-register opcodes");
 360 
 361 DEVELOP_FLAG(bool,     SparcV9RegsHiBitsZero, true, JVMFlag::DEFAULT,
 362                        "Assume Sparc V9 I&L registers on V8+ systems are zero-extended");
 363 
 364 PRODUCT_FLAG(bool,     UseRDPCForConstantTableBase, false, JVMFlag::DEFAULT,
 365                        "Use Sparc RDPC instruction for the constant table base.");
 366 
 367 NOTPROD_FLAG(bool,     PrintIdealGraph, false, JVMFlag::DEFAULT,
 368                        "Print ideal graph to XML file / network interface. "
 369                        "By default attempts to connect to the visualizer on a socket.");
 370 
 371 NOTPROD_FLAG(intx,     PrintIdealGraphLevel, 0, JVMFlag::RANGE,
 372                        "Level of detail of the ideal graph printout. "
 373                        "System-wide value, 0=nothing is printed, 4=all details printed. "
 374                        "Level of detail of printouts can be set on a per-method level "
 375                        "as well by using CompileCommand=option.");
 376    FLAG_RANGE(         PrintIdealGraphLevel, 0, 4);
 377 
 378 NOTPROD_FLAG(intx,     PrintIdealGraphPort, 4444, JVMFlag::RANGE,
 379                        "Ideal graph printer to network port");
 380    FLAG_RANGE(         PrintIdealGraphPort, 0, SHRT_MAX);
 381 
 382 NOTPROD_FLAG(ccstr,    PrintIdealGraphAddress, "127.0.0.1", JVMFlag::DEFAULT,
 383                        "IP address to connect to visualizer");
 384 
 385 NOTPROD_FLAG(ccstr,    PrintIdealGraphFile, NULL, JVMFlag::DEFAULT,
 386                        "File to dump ideal graph to.  If set overrides the "
 387                        "use of the network");
 388 
 389 PRODUCT_FLAG(bool,     UseBimorphicInlining, true, JVMFlag::DEFAULT,
 390                        "Profiling based inlining for two receivers");
 391 
 392 PRODUCT_FLAG(bool,     UseOnlyInlinedBimorphic, true, JVMFlag::DEFAULT,
 393                        "Don't use BimorphicInlining if can't inline a second method");
 394 
 395 PRODUCT_FLAG(bool,     InsertMemBarAfterArraycopy, true, JVMFlag::DEFAULT,
 396                        "Insert memory barrier after arraycopy call");
 397 
 398 DEVELOP_FLAG(bool,     SubsumeLoads, true, JVMFlag::DEFAULT,
 399                        "Attempt to compile while subsuming loads into machine "
 400                        "instructions.");
 401 
 402 DEVELOP_FLAG(bool,     StressRecompilation, false, JVMFlag::DEFAULT,
 403                        "Recompile each compiled method without subsuming loads "
 404                        "or escape analysis.");
 405 
 406 DEVELOP_FLAG(intx,     ImplicitNullCheckThreshold, 3, JVMFlag::RANGE,
 407                        "Don't do implicit null checks if NPE's in a method exceeds "
 408                        "limit");
 409    FLAG_RANGE(         ImplicitNullCheckThreshold, 0, max_jint);
 410 
 411 PRODUCT_FLAG(intx,     LoopOptsCount, 43, JVMFlag::RANGE,
 412                        "Set level of loop optimization for tier 1 compiles");
 413    FLAG_RANGE(         LoopOptsCount, 5, 43);
 414 
 415 
 416     //  controls for heat-based inlining 
 417 DEVELOP_FLAG(intx,     NodeCountInliningCutoff, 18000, JVMFlag::RANGE,
 418                        "If parser node generation exceeds limit stop inlining");
 419    FLAG_RANGE(         NodeCountInliningCutoff, 0, max_jint);
 420 
 421 DEVELOP_FLAG(intx,     NodeCountInliningStep, 1000, JVMFlag::RANGE,
 422                        "Target size of warm calls inlined between optimization passes");
 423    FLAG_RANGE(         NodeCountInliningStep, 0, max_jint);
 424 
 425 DEVELOP_FLAG(bool,     InlineWarmCalls, false, JVMFlag::DEFAULT,
 426                        "Use a heat-based priority queue to govern inlining");
 427 
 428 
 429     //  Max values must not exceed WarmCallInfo::MAX_VALUE(). 
 430 DEVELOP_FLAG(intx,     HotCallCountThreshold, 999999, JVMFlag::RANGE,
 431                        "large numbers of calls (per method invocation) force hotness");
 432    FLAG_RANGE(         HotCallCountThreshold, 0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 433 
 434 DEVELOP_FLAG(intx,     HotCallProfitThreshold, 999999, JVMFlag::RANGE,
 435                        "highly profitable inlining opportunities force hotness");
 436    FLAG_RANGE(         HotCallProfitThreshold, 0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 437 
 438 DEVELOP_FLAG(intx,     HotCallTrivialWork, -1, JVMFlag::RANGE,
 439                        "trivial execution time (no larger than this) forces hotness");
 440    FLAG_RANGE(         HotCallTrivialWork, -1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 441 
 442 DEVELOP_FLAG(intx,     HotCallTrivialSize, -1, JVMFlag::RANGE,
 443                        "trivial methods (no larger than this) force calls to be hot");
 444    FLAG_RANGE(         HotCallTrivialSize, -1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 445 
 446 DEVELOP_FLAG(intx,     WarmCallMinCount, -1, JVMFlag::RANGE,
 447                        "number of calls (per method invocation) to enable inlining");
 448    FLAG_RANGE(         WarmCallMinCount, -1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 449 
 450 DEVELOP_FLAG(intx,     WarmCallMinProfit, -1, JVMFlag::RANGE,
 451                        "number of calls (per method invocation) to enable inlining");
 452    FLAG_RANGE(         WarmCallMinProfit, -1, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 453 
 454 DEVELOP_FLAG(intx,     WarmCallMaxWork, 999999, JVMFlag::RANGE,
 455                        "execution time of the largest inlinable method");
 456    FLAG_RANGE(         WarmCallMaxWork, 0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 457 
 458 DEVELOP_FLAG(intx,     WarmCallMaxSize, 999999, JVMFlag::RANGE,
 459                        "size of the largest inlinable method");
 460    FLAG_RANGE(         WarmCallMaxSize, 0, ((intx)MIN2((int64_t)max_intx,(int64_t)(+1.0e10))));
 461 
 462 PRODUCT_FLAG(intx,     MaxNodeLimit, 80000, JVMFlag::RANGE,
 463                        "Maximum number of nodes");
 464    FLAG_RANGE(         MaxNodeLimit, 1000, max_jint / 3);
 465 
 466 PRODUCT_FLAG(intx,     NodeLimitFudgeFactor, 2000, JVMFlag::CONSTRAINT,
 467                        "Fudge Factor for certain optimizations");
 468    FLAG_CONSTRAINT(    NodeLimitFudgeFactor, (void*)NodeLimitFudgeFactorConstraintFunc, JVMFlag::AfterErgo);
 469 
 470 PRODUCT_FLAG(bool,     UseJumpTables, true, JVMFlag::DEFAULT,
 471                        "Use JumpTables instead of a binary search tree for switches");
 472 
 473 PRODUCT_FLAG(bool,     UseDivMod, true, JVMFlag::DEFAULT,
 474                        "Use combined DivMod instruction if available");
 475 
 476 PRODUCT_FLAG_PD(intx,  MinJumpTableSize, JVMFlag::RANGE,
 477                        "Minimum number of targets in a generated jump table");
 478    FLAG_RANGE(         MinJumpTableSize, 0, max_intx);
 479 
 480 PRODUCT_FLAG(intx,     MaxJumpTableSize, 65000, JVMFlag::RANGE,
 481                        "Maximum number of targets in a generated jump table");
 482    FLAG_RANGE(         MaxJumpTableSize, 0, max_intx);
 483 
 484 PRODUCT_FLAG(intx,     MaxJumpTableSparseness, 5, JVMFlag::RANGE,
 485                        "Maximum sparseness for jumptables");
 486    FLAG_RANGE(         MaxJumpTableSparseness, 0, max_intx / 4);
 487 
 488 PRODUCT_FLAG(bool,     EliminateLocks, true, JVMFlag::DEFAULT,
 489                        "Coarsen locks when possible");
 490 
 491 PRODUCT_FLAG(bool,     EliminateNestedLocks, true, JVMFlag::DEFAULT,
 492                        "Eliminate nested locks of the same object when possible");
 493 
 494 NOTPROD_FLAG(bool,     PrintLockStatistics, false, JVMFlag::DEFAULT,
 495                        "Print precise statistics on the dynamic lock usage");
 496 
 497 PRODUCT_FLAG(bool,     PrintPreciseBiasedLockingStatistics, false, JVMFlag::DIAGNOSTIC,
 498                        "Print per-lock-site statistics of biased locking in JVM");
 499 
 500 PRODUCT_FLAG(bool,     PrintPreciseRTMLockingStatistics, false, JVMFlag::DIAGNOSTIC,
 501                        "Print per-lock-site statistics of rtm locking in JVM");
 502 
 503 NOTPROD_FLAG(bool,     PrintEliminateLocks, false, JVMFlag::DEFAULT,
 504                        "Print out when locks are eliminated");
 505 
 506 PRODUCT_FLAG(bool,     EliminateAutoBox, true, JVMFlag::DEFAULT,
 507                        "Control optimizations for autobox elimination");
 508 
 509 PRODUCT_FLAG(intx,     AutoBoxCacheMax, 128, JVMFlag::RANGE,
 510                        "Sets max value cached by the java.lang.Integer autobox cache");
 511    FLAG_RANGE(         AutoBoxCacheMax, 0, max_jint);
 512 
 513 PRODUCT_FLAG(bool,     AggressiveUnboxing, true, JVMFlag::DIAGNOSTIC,
 514                        "Control optimizations for aggressive boxing elimination");
 515 
 516 DEVELOP_FLAG(bool,     TracePostallocExpand, false, JVMFlag::DEFAULT,
 517                        "Trace expanding nodes after"
 518                        " register allocation.");
 519 
 520 PRODUCT_FLAG(bool,     DoEscapeAnalysis, true, JVMFlag::DEFAULT,
 521                        "Perform escape analysis");
 522 
 523 PRODUCT_FLAG(double,   EscapeAnalysisTimeout, 20. DEBUG_ONLY(+40.), JVMFlag::RANGE,
 524                        "Abort EA when it reaches time limit (in sec)");
 525    FLAG_RANGE(         EscapeAnalysisTimeout, 0, DBL_MAX);
 526 
 527 DEVELOP_FLAG(bool,     ExitEscapeAnalysisOnTimeout, true, JVMFlag::DEFAULT,
 528                        "Exit or throw assert in EA when it reaches time limit");
 529 
 530 NOTPROD_FLAG(bool,     PrintEscapeAnalysis, false, JVMFlag::DEFAULT,
 531                        "Print the results of escape analysis");
 532 
 533 PRODUCT_FLAG(bool,     EliminateAllocations, true, JVMFlag::DEFAULT,
 534                        "Use escape analysis to eliminate allocations");
 535 
 536 NOTPROD_FLAG(bool,     PrintEliminateAllocations, false, JVMFlag::DEFAULT,
 537                        "Print out when allocations are eliminated");
 538 
 539 PRODUCT_FLAG(intx,     EliminateAllocationArraySizeLimit, 64, JVMFlag::RANGE,
 540                        "Array size (number of elements) limit for scalar replacement");
 541    FLAG_RANGE(         EliminateAllocationArraySizeLimit, 0, max_jint);
 542 
 543 PRODUCT_FLAG(bool,     OptimizePtrCompare, true, JVMFlag::DEFAULT,
 544                        "Use escape analysis to optimize pointers compare");
 545 
 546 NOTPROD_FLAG(bool,     PrintOptimizePtrCompare, false, JVMFlag::DEFAULT,
 547                        "Print information about optimized pointers compare");
 548 
 549 NOTPROD_FLAG(bool,     VerifyConnectionGraph, true, JVMFlag::DEFAULT,
 550                        "Verify Connection Graph construction in Escape Analysis");
 551 
 552 PRODUCT_FLAG(bool,     UseOptoBiasInlining, true, JVMFlag::DEFAULT,
 553                        "Generate biased locking code in C2 ideal graph");
 554 
 555 PRODUCT_FLAG(bool,     OptimizeStringConcat, true, JVMFlag::DEFAULT,
 556                        "Optimize the construction of Strings by StringBuilder");
 557 
 558 NOTPROD_FLAG(bool,     PrintOptimizeStringConcat, false, JVMFlag::DEFAULT,
 559                        "Print information about transformations performed on Strings");
 560 
 561 PRODUCT_FLAG(intx,     ValueSearchLimit, 1000, JVMFlag::RANGE,
 562                        "Recursion limit in PhaseMacroExpand::value_from_mem_phi");
 563    FLAG_RANGE(         ValueSearchLimit, 0, max_jint);
 564 
 565 PRODUCT_FLAG(intx,     MaxLabelRootDepth, 1100, JVMFlag::RANGE,
 566                        "Maximum times call Label_Root to prevent stack overflow");
 567    FLAG_RANGE(         MaxLabelRootDepth, 100, max_jint);
 568 
 569 PRODUCT_FLAG(intx,     DominatorSearchLimit, 1000, JVMFlag::DIAGNOSTIC | JVMFlag::RANGE,
 570                        "Iterations limit in Node::dominates");
 571    FLAG_RANGE(         DominatorSearchLimit, 0, max_jint);
 572 
 573 PRODUCT_FLAG(bool,     BlockLayoutByFrequency, true, JVMFlag::DEFAULT,
 574                        "Use edge frequencies to drive block ordering");
 575 
 576 PRODUCT_FLAG(intx,     BlockLayoutMinDiamondPercentage, 20, JVMFlag::RANGE,
 577                        "Miniumum %% of a successor (predecessor) for which block "
 578                        "layout a will allow a fork (join) in a single chain");
 579    FLAG_RANGE(         BlockLayoutMinDiamondPercentage, 0, 100);
 580 
 581 PRODUCT_FLAG(bool,     BlockLayoutRotateLoops, true, JVMFlag::DEFAULT,
 582                        "Allow back branches to be fall throughs in the block layout");
 583 
 584 PRODUCT_FLAG(bool,     InlineReflectionGetCallerClass, true, JVMFlag::DIAGNOSTIC,
 585                        "inline sun.reflect.Reflection.getCallerClass(), known to be "
 586                        "part of base library DLL");
 587 
 588 PRODUCT_FLAG(bool,     InlineObjectCopy, true, JVMFlag::DIAGNOSTIC,
 589                        "inline Object.clone and Arrays.copyOf[Range] intrinsics");
 590 
 591 PRODUCT_FLAG(bool,     SpecialStringCompareTo, true, JVMFlag::DIAGNOSTIC,
 592                        "special version of string compareTo");
 593 
 594 PRODUCT_FLAG(bool,     SpecialStringIndexOf, true, JVMFlag::DIAGNOSTIC,
 595                        "special version of string indexOf");
 596 
 597 PRODUCT_FLAG(bool,     SpecialStringEquals, true, JVMFlag::DIAGNOSTIC,
 598                        "special version of string equals");
 599 
 600 PRODUCT_FLAG(bool,     SpecialArraysEquals, true, JVMFlag::DIAGNOSTIC,
 601                        "special version of Arrays.equals(char[],char[])");
 602 
 603 PRODUCT_FLAG(bool,     SpecialEncodeISOArray, true, JVMFlag::DIAGNOSTIC,
 604                        "special version of ISO_8859_1$Encoder.encodeISOArray");
 605 
 606 DEVELOP_FLAG(bool,     BailoutToInterpreterForThrows, false, JVMFlag::DEFAULT,
 607                        "Compiled methods which throws/catches exceptions will be "
 608                        "deopt and intp.");
 609 
 610 DEVELOP_FLAG(bool,     ConvertCmpD2CmpF, true, JVMFlag::DEFAULT,
 611                        "Convert cmpD to cmpF when one input is constant in float range");
 612 
 613 DEVELOP_FLAG(bool,     ConvertFloat2IntClipping, true, JVMFlag::DEFAULT,
 614                        "Convert float2int clipping idiom to integer clipping");
 615 
 616 DEVELOP_FLAG(bool,     MonomorphicArrayCheck, true, JVMFlag::DEFAULT,
 617                        "Uncommon-trap array store checks that require full type check");
 618 
 619 NOTPROD_FLAG(bool,     TracePhaseCCP, false, JVMFlag::DEFAULT,
 620                        "Print progress during Conditional Constant Propagation");
 621 
 622 DEVELOP_FLAG(bool,     PrintDominators, false, JVMFlag::DEFAULT,
 623                        "Print out dominator trees for GVN");
 624 
 625 PRODUCT_FLAG(bool,     TraceSpilling, false, JVMFlag::DIAGNOSTIC,
 626                        "Trace spilling");
 627 
 628 PRODUCT_FLAG(bool,     TraceTypeProfile, false, JVMFlag::DIAGNOSTIC,
 629                        "Trace type profile");
 630 
 631 DEVELOP_FLAG(bool,     PoisonOSREntry, true, JVMFlag::DEFAULT,
 632                        "Detect abnormal calls to OSR code");
 633 
 634 DEVELOP_FLAG(bool,     SoftMatchFailure, trueInProduct, JVMFlag::DEFAULT,
 635                        "If the DFA fails to match a node, print a message and bail out");
 636 
 637 DEVELOP_FLAG(bool,     InlineAccessors, true, JVMFlag::DEFAULT,
 638                        "inline accessor methods (get/set)");
 639 
 640 PRODUCT_FLAG(intx,     TypeProfileMajorReceiverPercent, 90, JVMFlag::RANGE,
 641                        "% of major receiver type to all profiled receivers");
 642    FLAG_RANGE(         TypeProfileMajorReceiverPercent, 0, 100);
 643 
 644 PRODUCT_FLAG(bool,     PrintIntrinsics, false, JVMFlag::DIAGNOSTIC,
 645                        "prints attempted and successful inlining of intrinsics");
 646 
 647 DEVELOP_FLAG(bool,     StressReflectiveCode, false, JVMFlag::DEFAULT,
 648                        "Use inexact types at allocations, etc., to test reflection");
 649 
 650 PRODUCT_FLAG(bool,     DebugInlinedCalls, true, JVMFlag::DIAGNOSTIC,
 651                        "If false, restricts profiled locations to the root method only");
 652 
 653 DEVELOP_FLAG(bool,     VerifyLoopOptimizations, false, JVMFlag::DEFAULT,
 654                        "verify major loop optimizations");
 655 
 656 PRODUCT_FLAG(bool,     ProfileDynamicTypes, true, JVMFlag::DIAGNOSTIC,
 657                        "do extra type profiling and use it more aggressively");
 658 
 659 DEVELOP_FLAG(bool,     TraceIterativeGVN, false, JVMFlag::DEFAULT,
 660                        "Print progress during Iterative Global Value Numbering");
 661 
 662 DEVELOP_FLAG(bool,     VerifyIterativeGVN, false, JVMFlag::DEFAULT,
 663                        "Verify Def-Use modifications during sparse Iterative Global "
 664                        "Value Numbering");
 665 
 666 NOTPROD_FLAG(bool,     TraceCISCSpill, false, JVMFlag::DEFAULT,
 667                        "Trace allocators use of cisc spillable instructions");
 668 
 669 PRODUCT_FLAG(bool,     SplitIfBlocks, true, JVMFlag::DEFAULT,
 670                        "Clone compares and control flow through merge points to fold "
 671                        "some branches");
 672 
 673 DEVELOP_FLAG(intx,     FreqCountInvocations, 1, JVMFlag::RANGE,
 674                        "Scaling factor for branch frequencies (deprecated)");
 675    FLAG_RANGE(         FreqCountInvocations, 1, max_intx);
 676 
 677 PRODUCT_FLAG(intx,     AliasLevel, 3, JVMFlag::RANGE | JVMFlag::CONSTRAINT,
 678                        "0 for no aliasing, 1 for oop/field/static/array split, "
 679                        "2 for class split, 3 for unique instances");
 680    FLAG_RANGE(         AliasLevel, 0, 3);
 681    FLAG_CONSTRAINT(    AliasLevel, (void*)AliasLevelConstraintFunc, JVMFlag::AfterErgo);
 682 
 683 DEVELOP_FLAG(bool,     VerifyAliases, false, JVMFlag::DEFAULT,
 684                        "perform extra checks on the results of alias analysis");
 685 
 686 PRODUCT_FLAG(bool,     IncrementalInline, true, JVMFlag::DEFAULT,
 687                        "do post parse inlining");
 688 
 689 DEVELOP_FLAG(bool,     AlwaysIncrementalInline, false, JVMFlag::DEFAULT,
 690                        "do all inlining incrementally");
 691 
 692 PRODUCT_FLAG(intx,     LiveNodeCountInliningCutoff, 40000, JVMFlag::RANGE,
 693                        "max number of live nodes in a method");
 694    FLAG_RANGE(         LiveNodeCountInliningCutoff, 0, max_juint / 8);
 695 
 696 PRODUCT_FLAG(bool,     OptimizeExpensiveOps, true, JVMFlag::DIAGNOSTIC,
 697                        "Find best control for expensive operations");
 698 
 699 PRODUCT_FLAG(bool,     UseMathExactIntrinsics, true, JVMFlag::DIAGNOSTIC,
 700                        "Enables intrinsification of various java.lang.Math functions");
 701 
 702 PRODUCT_FLAG(bool,     UseCharacterCompareIntrinsics, false, JVMFlag::DIAGNOSTIC,
 703                        "Enables intrinsification of java.lang.Character functions");
 704 
 705 PRODUCT_FLAG(bool,     UseMultiplyToLenIntrinsic, false, JVMFlag::DIAGNOSTIC,
 706                        "Enables intrinsification of BigInteger.multiplyToLen()");
 707 
 708 PRODUCT_FLAG(bool,     UseSquareToLenIntrinsic, false, JVMFlag::DIAGNOSTIC,
 709                        "Enables intrinsification of BigInteger.squareToLen()");
 710 
 711 PRODUCT_FLAG(bool,     UseMulAddIntrinsic, false, JVMFlag::DIAGNOSTIC,
 712                        "Enables intrinsification of BigInteger.mulAdd()");
 713 
 714 PRODUCT_FLAG(bool,     UseMontgomeryMultiplyIntrinsic, false, JVMFlag::DIAGNOSTIC,
 715                        "Enables intrinsification of BigInteger.montgomeryMultiply()");
 716 
 717 PRODUCT_FLAG(bool,     UseMontgomerySquareIntrinsic, false, JVMFlag::DIAGNOSTIC,
 718                        "Enables intrinsification of BigInteger.montgomerySquare()");
 719 
 720 PRODUCT_FLAG(bool,     UseTypeSpeculation, true, JVMFlag::DEFAULT,
 721                        "Speculatively propagate types from profiles");
 722 
 723 PRODUCT_FLAG(bool,     UseInlineDepthForSpeculativeTypes, true, JVMFlag::DIAGNOSTIC,
 724                        "Carry inline depth of profile point with speculative type "
 725                        "and give priority to profiling from lower inline depth");
 726 
 727 PRODUCT_FLAG_PD(bool,  TrapBasedRangeChecks, JVMFlag::DEFAULT,
 728                        "Generate code for range checks that uses a cmp and trap "
 729                        "instruction raising SIGTRAP. Used on PPC64.");
 730 
 731 PRODUCT_FLAG(intx,     ArrayCopyLoadStoreMaxElem, 8, JVMFlag::RANGE,
 732                        "Maximum number of arraycopy elements inlined as a sequence of"
 733                        "loads/stores");
 734    FLAG_RANGE(         ArrayCopyLoadStoreMaxElem, 0, max_intx);
 735 
 736 DEVELOP_FLAG(bool,     StressArrayCopyMacroNode, false, JVMFlag::DEFAULT,
 737                        "Perform ArrayCopy load/store replacement during IGVN only");
 738 
 739 DEVELOP_FLAG(bool,     RenumberLiveNodes, true, JVMFlag::DEFAULT,
 740                        "Renumber live nodes");
 741 
 742 PRODUCT_FLAG(uintx,    LoopStripMiningIter, 0, JVMFlag::RANGE,
 743                        "Number of iterations in strip mined loop");
 744    FLAG_RANGE(         LoopStripMiningIter, 0, max_juint);
 745 
 746 PRODUCT_FLAG(uintx,    LoopStripMiningIterShortLoop, 0, JVMFlag::RANGE,
 747                        "Loop with fewer iterations are not strip mined");
 748    FLAG_RANGE(         LoopStripMiningIterShortLoop, 0, max_juint);
 749 
 750 PRODUCT_FLAG(bool,     UseProfiledLoopPredicate, true, JVMFlag::DEFAULT,
 751                        "Move predicates out of loops based on profiling data");







 752 
 753 PRODUCT_FLAG(bool,     ExpandSubTypeCheckAtParseTime, false, JVMFlag::DIAGNOSTIC,
 754                        "Do not use subtype check macro node");
 755 #endif // COMPILER2
 756 #endif // SHARE_OPTO_C2_GLOBALS_HPP
< prev index next >