diff options
author | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-08 09:59:23 +0000 |
---|---|---|
committer | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-08 09:59:23 +0000 |
commit | 934574417663b03dd7329cb3a8d00079ccf73985 (patch) | |
tree | ca536f735bdbfe3960e007f1ab9a9c984da784a1 /gcc/sel-sched.c | |
parent | a3d6b6f0e7400a0e24b8f191ea3a7abe141dd4f1 (diff) | |
download | gcc-934574417663b03dd7329cb3a8d00079ccf73985.tar.gz |
PR rtl-optimization/49303
* sel-sched.c (move_op): Use correct type for 'res'. Verify that
code_motion_path_driver returned 0 or 1.
(sel_region_finish): Clear h_d_i_d.
testsuite:
* gcc.target/ia64/pr49303.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174801 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched.c')
-rw-r--r-- | gcc/sel-sched.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index 3f22a3cb6a9..8a39d80d250 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -6675,7 +6675,7 @@ move_op (insn_t insn, av_set_t orig_ops, expr_t expr_vliw, { struct moveop_static_params sparams; struct cmpd_local_params lparams; - bool res; + int res; /* Init params for code_motion_path_driver. */ sparams.dest = dest; @@ -6694,6 +6694,8 @@ move_op (insn_t insn, av_set_t orig_ops, expr_t expr_vliw, code_motion_path_driver_info = &move_op_hooks; res = code_motion_path_driver (insn, orig_ops, NULL, &lparams, &sparams); + gcc_assert (res != -1); + if (sparams.was_renamed) EXPR_WAS_RENAMED (expr_vliw) = true; @@ -7269,6 +7271,7 @@ sel_region_finish (bool reset_sched_cycles_p) finish_deps_global (); sched_finish_luids (); + VEC_free (haifa_deps_insn_data_def, heap, h_d_i_d); sel_finish_bbs (); BITMAP_FREE (blocks_to_reschedule); |