diff options
author | Richard Henderson <rth@redhat.com> | 2003-01-20 21:04:34 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-01-20 21:04:34 -0800 |
commit | 7a174a15342156271f6c01d9db6314f21b4f2935 (patch) | |
tree | 1cdf0032837ad715059d4304a7cebfa1985d8cb6 /gcc/ifcvt.c | |
parent | 9ac7ebba1c097d331bac2b9b47811740030fa7be (diff) | |
download | gcc-7a174a15342156271f6c01d9db6314f21b4f2935.zip gcc-7a174a15342156271f6c01d9db6314f21b4f2935.tar.gz gcc-7a174a15342156271f6c01d9db6314f21b4f2935.tar.bz2 |
re PR rtl-optimization/8848 (bad code when optimizing (lifetime analysis pass?))
PR opt/8848
* ifcvt.c (noce_process_if_block): Correct arguments to
modified_between_p for no-else-block case.
* gcc.c-torture/execute/20030120-2.c: New.
From-SVN: r61532
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 6b069af..341e755 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1809,7 +1809,8 @@ noce_process_if_block (ce_info) || reg_overlap_mentioned_p (x, cond) || reg_overlap_mentioned_p (x, a) || reg_overlap_mentioned_p (x, SET_SRC (set_b)) - || modified_between_p (x, if_info.cond_earliest, NEXT_INSN (jump))) + || modified_between_p (SET_SRC (set_b), + PREV_INSN (if_info.cond_earliest), jump)) insn_b = set_b = NULL_RTX; } b = (set_b ? SET_SRC (set_b) : x); |