Commit cc5e1642 by J"orn Rennecke Committed by Jeff Law

jump.c (thread_jumps): check can_reverse_comparison_p before threading a reversed-condition jump.

        * jump.c (thread_jumps): check can_reverse_comparison_p before
        threading a reversed-condition jump.

From-SVN: r15590
parent 272299b9
Fri Sep 19 18:53:50 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* jump.c (thread_jumps): check can_reverse_comparison_p before
threading a reversed-condition jump.
* sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
* haifa-sched.c (update_flow_info): Likewise.
......
......@@ -4463,7 +4463,10 @@ thread_jumps (f, max_reg, flag_before_loop)
if (rtx_equal_for_thread_p (b1op0, b2op0, b2)
&& rtx_equal_for_thread_p (b1op1, b2op1, b2)
&& (comparison_dominates_p (code1, code2)
|| comparison_dominates_p (code1, reverse_condition (code2))))
|| (comparison_dominates_p (code1, reverse_condition (code2))
&& can_reverse_comparison_p (XEXP (SET_SRC (PATTERN (b1)),
0),
b1))))
{
t1 = prev_nonnote_insn (b1);
t2 = prev_nonnote_insn (b2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment