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
This commit is contained in:
Jim Wilson 2001-10-02 05:00:19 +00:00 committed by Jim Wilson
parent ed947a968e
commit 357e3f3d83
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-10-01 Jim Wilson <wilson@redhat.com>
* sched-deps.c (add_dependence): When elide conditional dependence,
check that insn doesn't modify cond2.
2001-10-01 Dale Johannesen <dalej@apple.com>
* config/rs6000/rs6000.h (enum processor_type): Add support

View File

@ -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;
}