Mercurial > hg > graal-jvmci-8
diff src/share/vm/adlc/formssel.cpp @ 3842:c7b60b601eb4
7069452: Cleanup NodeFlags
Summary: Remove flags which duplicate information in Node::NodeClasses.
Reviewed-by: never
author | kvn |
---|---|
date | Wed, 27 Jul 2011 17:28:36 -0700 |
parents | 3d42f82cd811 |
children | f1c12354c3f7 |
line wrap: on
line diff
--- a/src/share/vm/adlc/formssel.cpp Wed Jul 27 15:06:35 2011 -0700 +++ b/src/share/vm/adlc/formssel.cpp Wed Jul 27 17:28:36 2011 -0700 @@ -291,15 +291,6 @@ } -// Return 'true' if this instruction matches an ideal 'Copy*' node -bool InstructForm::is_ideal_unlock() const { - return _matrule ? _matrule->is_ideal_unlock() : false; -} - -bool InstructForm::is_ideal_call_leaf() const { - return _matrule ? _matrule->is_ideal_call_leaf() : false; -} - // Return 'true' if this instruction matches an ideal 'If' node bool InstructForm::is_ideal_if() const { if( _matrule == NULL ) return false; @@ -1094,6 +1085,9 @@ else if (is_ideal_if()) { return "MachIfNode"; } + else if (is_ideal_goto()) { + return "MachGotoNode"; + } else if (is_ideal_fastlock()) { return "MachFastLockNode"; } @@ -2706,7 +2700,6 @@ int AttributeForm::_insId = 0; // start counter at 0 int AttributeForm::_opId = 0; // start counter at 0 const char* AttributeForm::_ins_cost = "ins_cost"; // required name -const char* AttributeForm::_ins_pc_relative = "ins_pc_relative"; const char* AttributeForm::_op_cost = "op_cost"; // required name AttributeForm::AttributeForm(char *attr, int type, char *attrdef) @@ -3929,19 +3922,6 @@ return 0; } -bool MatchRule::is_ideal_unlock() const { - if( !_opType ) return false; - return !strcmp(_opType,"Unlock") || !strcmp(_opType,"FastUnlock"); -} - - -bool MatchRule::is_ideal_call_leaf() const { - if( !_opType ) return false; - return !strcmp(_opType,"CallLeaf") || - !strcmp(_opType,"CallLeafNoFP"); -} - - bool MatchRule::is_ideal_if() const { if( !_opType ) return false; return