changeset 7115 | 32300e243300 |
parent 6418 | 6671edbd230e |
child 7116 | e24b7743e3d4 |
--- a/hotspot/src/cpu/sparc/vm/sparc.ad Sat Oct 30 13:08:23 2010 -0700 +++ b/hotspot/src/cpu/sparc/vm/sparc.ad Tue Nov 02 09:00:37 2010 -0700 @@ -1843,6 +1843,12 @@ return can_be_java_arg(reg); } +bool Matcher::use_asm_for_ldiv_by_con( jlong divisor ) { + // Use hardware SDIVX instruction when it is + // faster than a code which use multiply. + return VM_Version::has_fast_idiv(); +} + // Register for DIVI projection of divmodI RegMask Matcher::divI_proj_mask() { ShouldNotReachHere();