mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8281146: Replace StringCoding.hasNegatives with countPositives
Co-authored-by: Lutz Schmidt <lucy@openjdk.org> Co-authored-by: Martin Doerr <mdoerr@openjdk.org> Reviewed-by: kvn, lucy, rriggs
This commit is contained in:
parent
249d553659
commit
beedae1141
36 changed files with 552 additions and 335 deletions
|
@ -612,7 +612,7 @@ bool InstructForm::needs_anti_dependence_check(FormDict &globals) const {
|
|||
strcmp(_matrule->_rChild->_opType,"StrEquals" )==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"StrIndexOf" )==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"StrIndexOfChar" )==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"HasNegatives" )==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"CountPositives" )==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"AryEq" )==0 ))
|
||||
return true;
|
||||
|
||||
|
@ -902,7 +902,7 @@ uint InstructForm::oper_input_base(FormDict &globals) {
|
|||
strcmp(_matrule->_rChild->_opType,"StrCompressedCopy" )==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"StrIndexOf")==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"StrIndexOfChar")==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"HasNegatives")==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"CountPositives")==0 ||
|
||||
strcmp(_matrule->_rChild->_opType,"EncodeISOArray")==0)) {
|
||||
// String.(compareTo/equals/indexOf) and Arrays.equals
|
||||
// and sun.nio.cs.iso8859_1$Encoder.EncodeISOArray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue