Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/cpu/sparc/vm/vm_version_sparc.cpp Tue Apr 06 15:18:10 2010 -0700 +++ b/src/cpu/sparc/vm/vm_version_sparc.cpp Wed Apr 07 09:37:47 2010 -0700 @@ -86,14 +86,14 @@ if (FLAG_IS_DEFAULT(InteriorEntryAlignment)) { FLAG_SET_DEFAULT(InteriorEntryAlignment, 4); } - if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { - FLAG_SET_DEFAULT(OptoLoopAlignment, 4); - } if (is_niagara1_plus() && FLAG_IS_DEFAULT(AllocatePrefetchDistance)) { // Use smaller prefetch distance on N2 FLAG_SET_DEFAULT(AllocatePrefetchDistance, 256); } #endif + if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { + FLAG_SET_DEFAULT(OptoLoopAlignment, 4); + } } // Use hardware population count instruction if available.