diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-09-08 11:25:47 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-09-08 11:25:47 +0200 |
commit | 1098d3a5510e41a94ce96feaa087f608112ea01b (patch) | |
tree | 46fd118f8f43c998742ad489596528e4cc25da80 /gcc/tree-ssa-loop-ivopts.c | |
parent | c673a2c7b495c12e5d332838494523f5c62c85da (diff) | |
download | gcc-1098d3a5510e41a94ce96feaa087f608112ea01b.zip gcc-1098d3a5510e41a94ce96feaa087f608112ea01b.tar.gz gcc-1098d3a5510e41a94ce96feaa087f608112ea01b.tar.bz2 |
re PR rtl-optimization/41239 (Scheduler reorders division by zero before a call that might not return)
PR rtl-optimization/41239
* sched-int.h (struct deps): Add last_function_call_may_noreturn field.
* sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
lists.
* sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
across calls, as the calls might not always return normally.
(call_may_noreturn_p): New function.
(deps_analyze_insn): Update last_function_call_may_noreturn list.
(init_deps): Initialize it.
(remove_from_deps): Also remove calls from
last_function_call_may_noreturn list.
* gcc.c-torture/execute/pr41239.c: New test.
From-SVN: r151500
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
0 files changed, 0 insertions, 0 deletions