Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 675:f6da6f0174ac
6821700: tune VM flags for peak performance
Summary: Tune C2 flags default values for performance.
Reviewed-by: never, phh, iveresov, jmasa, ysr
author | kvn |
---|---|
date | Mon, 30 Mar 2009 18:19:31 -0700 |
parents | c771b7f43bbf |
children | 6476042f815c |
comparison
equal
deleted
inserted
replaced
674:4948e7dd28dc | 675:f6da6f0174ac |
---|---|
60 _supports_cx8 = has_v9(); | 60 _supports_cx8 = has_v9(); |
61 | 61 |
62 if (is_niagara1()) { | 62 if (is_niagara1()) { |
63 // Indirect branch is the same cost as direct | 63 // Indirect branch is the same cost as direct |
64 if (FLAG_IS_DEFAULT(UseInlineCaches)) { | 64 if (FLAG_IS_DEFAULT(UseInlineCaches)) { |
65 UseInlineCaches = false; | 65 FLAG_SET_DEFAULT(UseInlineCaches, false); |
66 } | 66 } |
67 #ifdef _LP64 | 67 #ifdef _LP64 |
68 // Single issue niagara1 is slower for CompressedOops | 68 // Single issue niagara1 is slower for CompressedOops |
69 // but niagaras after that it's fine. | 69 // but niagaras after that it's fine. |
70 if (!is_niagara1_plus()) { | 70 if (!is_niagara1_plus()) { |
77 Universe::set_narrow_oop_shift(LogMinObjAlignmentInBytes); | 77 Universe::set_narrow_oop_shift(LogMinObjAlignmentInBytes); |
78 #endif // _LP64 | 78 #endif // _LP64 |
79 #ifdef COMPILER2 | 79 #ifdef COMPILER2 |
80 // Indirect branch is the same cost as direct | 80 // Indirect branch is the same cost as direct |
81 if (FLAG_IS_DEFAULT(UseJumpTables)) { | 81 if (FLAG_IS_DEFAULT(UseJumpTables)) { |
82 UseJumpTables = true; | 82 FLAG_SET_DEFAULT(UseJumpTables, true); |
83 } | 83 } |
84 // Single-issue, so entry and loop tops are | 84 // Single-issue, so entry and loop tops are |
85 // aligned on a single instruction boundary | 85 // aligned on a single instruction boundary |
86 if (FLAG_IS_DEFAULT(InteriorEntryAlignment)) { | 86 if (FLAG_IS_DEFAULT(InteriorEntryAlignment)) { |
87 InteriorEntryAlignment = 4; | 87 FLAG_SET_DEFAULT(InteriorEntryAlignment, 4); |
88 } | 88 } |
89 if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { | 89 if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { |
90 OptoLoopAlignment = 4; | 90 FLAG_SET_DEFAULT(OptoLoopAlignment, 4); |
91 } | |
92 if (is_niagara1_plus() && FLAG_IS_DEFAULT(AllocatePrefetchDistance)) { | |
93 // Use smaller prefetch distance on N2 | |
94 FLAG_SET_DEFAULT(AllocatePrefetchDistance, 256); | |
91 } | 95 } |
92 #endif | 96 #endif |
93 } | 97 } |
94 | 98 |
95 // Use hardware population count instruction if available. | 99 // Use hardware population count instruction if available. |
96 if (has_hardware_popc()) { | 100 if (has_hardware_popc()) { |
97 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { | 101 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { |
98 UsePopCountInstruction = true; | 102 FLAG_SET_DEFAULT(UsePopCountInstruction, true); |
99 } | 103 } |
100 } | 104 } |
101 | 105 |
102 char buf[512]; | 106 char buf[512]; |
103 jio_snprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s%s%s%s%s%s", | 107 jio_snprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s%s%s%s%s%s", |