Mercurial > hg > graal-jvmci-8
diff src/share/vm/adlc/formssel.cpp @ 986:62001a362ce9
6827605: new String intrinsics may prevent EA scalar replacement
6875866: Intrinsic for String.indexOf() is broken on x86 with SSE4.2
Summary: Modify String intrinsic methods to pass char[] pointers instead of string oops.
Reviewed-by: never
author | kvn |
---|---|
date | Mon, 14 Sep 2009 12:14:20 -0700 |
parents | f9094a5e1c8a |
children | d7f654633cfe |
line wrap: on
line diff
--- a/src/share/vm/adlc/formssel.cpp Mon Sep 14 09:49:54 2009 -0700 +++ b/src/share/vm/adlc/formssel.cpp Mon Sep 14 12:14:20 2009 -0700 @@ -828,11 +828,13 @@ return AdlcVMDeps::Parms; // Skip the machine-state edges if( _matrule->_rChild && - ( strcmp(_matrule->_rChild->_opType,"StrComp" )==0 || + ( strcmp(_matrule->_rChild->_opType,"AryEq" )==0 || + strcmp(_matrule->_rChild->_opType,"StrComp" )==0 || strcmp(_matrule->_rChild->_opType,"StrEquals" )==0 || strcmp(_matrule->_rChild->_opType,"StrIndexOf")==0 )) { - // String.(compareTo/equals/indexOf) take 1 control and 4 memory edges. - return 5; + // String.(compareTo/equals/indexOf) and Arrays.equals + // take 1 control and 1 memory edges. + return 2; } // Check for handling of 'Memory' input/edge in the ideal world.