-
Notifications
You must be signed in to change notification settings - Fork 15
debug fix for upstream #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: michiel/fusion-trunk-3
Are you sure you want to change the base?
Conversation
luismgsilva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the contrib/check_GNU_style.sh script and fix the syntax according to the codebase.
$ git format-patch -1
0001...
$ bash contribu/check_GNU_style.sh 0001...| /*return the next possible fusible insn. */ | ||
|
|
||
| rtx_insn * | ||
| next_p_fusible_insn (rtx_insn *insn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the "arcv_" prefix in the function name.
| continue; | ||
|
|
||
| if(GET_CODE(insn) == BARRIER) | ||
| continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation.
| || !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i])) | ||
| || !SCHED_GROUP_P (next_insn (ready[*n_readyp - i]))) | ||
| rtx_insn* next_insn = next_p_fusible_insn (ready[*n_readyp - i]); | ||
| /*try to fuse the last_scheduled_insn with */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to leave the comments these must follow the correct structure.
/* This is a comment. */| /*try to fuse the last_scheduled_insn with */ | ||
| if (NONDEBUG_INSN_P (ready[*n_readyp - i]) /*fuse only with nondebug insn*/ | ||
| && !SCHED_GROUP_P (ready[*n_readyp - i]) /*which have not been already fused*/ | ||
| && (!next_insn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| && (!next_insn | |
| && (!next_insn || !SCHED_GROUP_P (next_insn)) |
| && arcv_macro_fusion_pair_p (sched_state.last_scheduled_insn, | ||
| ready[*n_readyp - i])) | ||
| && active_insn_p (ready[*n_readyp - i]) | ||
| && (!next_insn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| && (!next_insn | |
| && (!next_insn || !SCHED_GROUP_P (next_insn)) |
| && active_insn_p (ready[*n_readyp - i]) | ||
| && (!next_insn | ||
| || !SCHED_GROUP_P (next_insn)) | ||
| && arcv_macro_fusion_pair_p (sched_state.last_scheduled_insn, ready[*n_readyp - i])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to change this line.
| sched_state.last_scheduled_insn = 0; | ||
| } | ||
|
|
||
| /*return the next possible fusible insn. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the comment.
| && arcv_macro_fusion_pair_p (sched_state.last_scheduled_insn, ready[*n_readyp - i])) | ||
| { | ||
| if (get_attr_type (ready[*n_readyp - i]) == TYPE_LOAD | ||
| if (GET_CODE(PATTERN(ready[*n_readyp - i])) == USE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax.
| && recog_memoized (next_insn (ready[*n_readyp - i])) >= 0 | ||
| && get_attr_type (next_insn (ready[*n_readyp - i])) != TYPE_LOAD | ||
| && get_attr_type (next_insn (ready[*n_readyp - i])) != TYPE_STORE))) | ||
| && (!next_insn || !SCHED_GROUP_P (next_insn))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align indentation with the above conditions.
| if(GET_CODE(insn) == BARRIER) | ||
| continue; | ||
|
|
||
| if(GET_CODE(PATTERN(insn)) == USE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix syntax.
|
|
||
| /*return the next possible fusible insn. */ | ||
|
|
||
| rtx_insn * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rtx_insn * | |
| static rtx_insn * |
| || !SCHED_GROUP_P (next_insn (ready[*n_readyp - i]))) | ||
| && arcv_macro_fusion_pair_p (sched_state.last_scheduled_insn, | ||
| ready[*n_readyp - i])) | ||
| && active_insn_p (ready[*n_readyp - i]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to check active_insn_p here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't that imply NONDEBUG_INSN_P?
| /*return the next possible fusible insn. */ | ||
|
|
||
| rtx_insn * | ||
| next_p_fusible_insn (rtx_insn *insn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| next_p_fusible_insn (rtx_insn *insn) | |
| next_fusible_insn (rtx_insn *insn) |
| if (GET_CODE(PATTERN(ready[*n_readyp - i])) == USE) | ||
| continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to check for USE?
dejagnu fix