mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6771309: debugging AD files is difficult without #line directives in generated code
More and better #line and #define directives in the generated code; ADLC itself accepts #line directives Reviewed-by: never, kvn
This commit is contained in:
parent
e50f766540
commit
67464baa7a
10 changed files with 255 additions and 54 deletions
|
@ -1102,10 +1102,7 @@ bool equivalent_predicates( const InstructForm *instr1, const InstructForm *inst
|
|||
}
|
||||
if( pred1 != NULL && pred2 != NULL ) {
|
||||
// compare the predicates
|
||||
const char *str1 = pred1->_pred;
|
||||
const char *str2 = pred2->_pred;
|
||||
if( (str1 == NULL && str2 == NULL)
|
||||
|| (str1 != NULL && str2 != NULL && strcmp(str1,str2) == 0) ) {
|
||||
if (ADLParser::equivalent_expressions(pred1->_pred, pred2->_pred)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue