Mercurial > hg > graal-compiler
comparison src/cpu/sparc/vm/sparc.ad @ 1914:ae065c367d93
6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14.
Summary: Use hardware DIV instruction for long division by constant when it is faster than code with multiply.
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 02 Nov 2010 09:00:37 -0700 |
parents | 3e8fbc61cee8 |
children | 885e464e1a40 |
comparison
equal
deleted
inserted
replaced
1913:3b2dea75431e | 1914:ae065c367d93 |
---|---|
1839 return false; | 1839 return false; |
1840 } | 1840 } |
1841 | 1841 |
1842 bool Matcher::is_spillable_arg( int reg ) { | 1842 bool Matcher::is_spillable_arg( int reg ) { |
1843 return can_be_java_arg(reg); | 1843 return can_be_java_arg(reg); |
1844 } | |
1845 | |
1846 bool Matcher::use_asm_for_ldiv_by_con( jlong divisor ) { | |
1847 // Use hardware SDIVX instruction when it is | |
1848 // faster than a code which use multiply. | |
1849 return VM_Version::has_fast_idiv(); | |
1844 } | 1850 } |
1845 | 1851 |
1846 // Register for DIVI projection of divmodI | 1852 // Register for DIVI projection of divmodI |
1847 RegMask Matcher::divI_proj_mask() { | 1853 RegMask Matcher::divI_proj_mask() { |
1848 ShouldNotReachHere(); | 1854 ShouldNotReachHere(); |