diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-21 21:39:13 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-21 21:39:13 +0000 |
commit | 8d653dbeab3601c30d14be215ca13996d74ead5f (patch) | |
tree | 54278ef68b319637a8d21546434d557b0fca0752 | |
parent | 18b762f059f7f2de9eadfe2dfbecf01bd52b3949 (diff) | |
download | gcc-8d653dbeab3601c30d14be215ca13996d74ead5f.tar.gz |
* ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
of gcc_checking_assert.
* sel-sched.c (code_motion_process_successors): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165790 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ddg.c | 6 | ||||
-rw-r--r-- | gcc/sel-sched.c | 12 |
3 files changed, 17 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8340824519..0ba444d8f70 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Nathan Froyd <froydnj@codesourcery.com> + + * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead + of gcc_checking_assert. + * sel-sched.c (code_motion_process_successors): Likewise. + 2010-10-21 Eric Botcazou <ebotcazou@adacore.com> * cfgcleanup.c (try_forward_edges): Do not throw away previous steps diff --git a/gcc/ddg.c b/gcc/ddg.c index d7b093b9414..2cf06305544 100644 --- a/gcc/ddg.c +++ b/gcc/ddg.c @@ -262,9 +262,11 @@ add_cross_iteration_register_deps (ddg_ptr g, df_ref last_def) gcc_assert (last_def_node); gcc_assert (first_def); +#ifdef ENABLE_CHECKING if (DF_REF_ID (last_def) != DF_REF_ID (first_def)) - gcc_checking_assert (!bitmap_bit_p (&bb_info->gen, - DF_REF_ID (first_def))); + gcc_assert (!bitmap_bit_p (&bb_info->gen, + DF_REF_ID (first_def))); +#endif /* Create inter-loop true dependences and anti dependences. */ for (r_use = DF_REF_CHAIN (last_def); r_use != NULL; r_use = r_use->next) diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index 378e561bf59..ce014ed7f55 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -6360,6 +6360,7 @@ code_motion_process_successors (insn_t insn, av_set_t orig_ops, goto rescan; } +#ifdef ENABLE_CHECKING /* Here, RES==1 if original expr was found at least for one of the successors. After the loop, RES may happen to have zero value only if at some point the expr searched is present in av_set, but is @@ -6367,11 +6368,12 @@ code_motion_process_successors (insn_t insn, av_set_t orig_ops, The exception is when the original operation is blocked by bookkeeping generated for another fence or for another path in current move_op. */ - gcc_checking_assert (res == 1 - || (res == 0 - && av_set_could_be_blocked_by_bookkeeping_p (orig_ops, - static_params)) - || res == -1); + gcc_assert (res == 1 + || (res == 0 + && av_set_could_be_blocked_by_bookkeeping_p (orig_ops, + static_params)) + || res == -1); +#endif /* Merge data, clean up, etc. */ if (res != -1 && code_motion_path_driver_info->after_merge_succs) |