From caf819ae17ec6db89dc59af158478016f7f2d6a6 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Thu, 31 Jul 2003 07:56:36 +0000 Subject: [PATCH] Prevent interblock move of CC0 setter. From-SVN: r69992 --- gcc/ChangeLog | 5 +++++ gcc/sched-deps.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7729d5dade9..2c82f05d50b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-07-31 Vladimir Makarov + + * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0 + setter. + 2003-07-30 Roger Sayle * builtins.def: Alphabetize. diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 1a41e9989c9..477203caa22 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -625,6 +625,9 @@ sched_analyze_2 (struct deps *deps, rtx x, rtx insn) case CC0: /* User of CC0 depends on immediately preceding insn. */ set_sched_group_p (insn); + /* Don't move CC0 setter to another block (it can set up the + same flag for previous CC0 users which is safe). */ + CANT_MOVE (prev_nonnote_insn (insn)) = 1; return; #endif -- 2.30.2