From 357e3f3d83e1087d5fa239dddcb1ceb1e9b775ac Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 2 Oct 2001 05:00:19 +0000 Subject: Fix ia64 scheduler/predicated insn bug report from SAP. * sched-deps.c (add_dependence): When elide conditional dependence, check that insn doesn't modify cond2. From-SVN: r45938 --- gcc/sched-deps.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/sched-deps.c') diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 0142221..abb02c4 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -222,7 +222,12 @@ add_dependence (insn, elem, dep_type) cond2 = get_condition (elem); if (cond1 && cond2 && conditions_mutex_p (cond1, cond2) - && !modified_in_p (cond1, elem)) + /* Make sure first instruction doesn't affect condition of second + instruction if switched. */ + && !modified_in_p (cond1, elem) + /* Make sure second instruction doesn't affect condition of first + instruction if switched. */ + && !modified_in_p (cond2, insn)) return; } -- cgit v1.1