Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 1365:6476042f815c
6940701: Don't align loops in stubs for Niagara sparc
Summary: Don't align loops in stubs for Niagara sparc since NOPs are expensive.
Reviewed-by: twisti, never
author | kvn |
---|---|
date | Wed, 07 Apr 2010 09:37:47 -0700 |
parents | f6da6f0174ac |
children | 9e321dcfa5b7 |
comparison
equal
deleted
inserted
replaced
1364:0dc88ad3244e | 1365:6476042f815c |
---|---|
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 FLAG_SET_DEFAULT(InteriorEntryAlignment, 4); | 87 FLAG_SET_DEFAULT(InteriorEntryAlignment, 4); |
88 } | 88 } |
89 if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { | |
90 FLAG_SET_DEFAULT(OptoLoopAlignment, 4); | |
91 } | |
92 if (is_niagara1_plus() && FLAG_IS_DEFAULT(AllocatePrefetchDistance)) { | 89 if (is_niagara1_plus() && FLAG_IS_DEFAULT(AllocatePrefetchDistance)) { |
93 // Use smaller prefetch distance on N2 | 90 // Use smaller prefetch distance on N2 |
94 FLAG_SET_DEFAULT(AllocatePrefetchDistance, 256); | 91 FLAG_SET_DEFAULT(AllocatePrefetchDistance, 256); |
95 } | 92 } |
96 #endif | 93 #endif |
94 if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { | |
95 FLAG_SET_DEFAULT(OptoLoopAlignment, 4); | |
96 } | |
97 } | 97 } |
98 | 98 |
99 // Use hardware population count instruction if available. | 99 // Use hardware population count instruction if available. |
100 if (has_hardware_popc()) { | 100 if (has_hardware_popc()) { |
101 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { | 101 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { |