* sched-deps.c (add_dependence): If not doing predication, promote
REG_DEP_CONTROL to REG_DEP_ANTI.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180310
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
+
+ PR bootstrap/50825
+ * sched-deps.c (add_dependence): If not doing predication, promote
+ REG_DEP_CONTROL to REG_DEP_ANTI.
+
2011-10-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
void
add_dependence (rtx con, rtx pro, enum reg_note dep_type)
{
+ if (dep_type == REG_DEP_CONTROL
+ && !(current_sched_info->flags & DO_PREDICATION))
+ dep_type = REG_DEP_ANTI;
+
/* A REG_DEP_CONTROL dependence may be eliminated through predication,
so we must also make the insn dependent on the setter of the
condition. */