Commit 3e7c7805 by Bernd Schmidt Committed by Bernd Schmidt

Fix abort where write_count got to 3

From-SVN: r45137
parent ab75d1f1
2001-08-23 Bernd Schmidt <bernds@redhat.com>
* config/ia64/ia64.c (rws_update): If !pred, set write_count
instead of incrementing it.
Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz> Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
* function.c (thread_prologue_and_epilogue_insns): Avoid * function.c (thread_prologue_and_epilogue_insns): Avoid
......
...@@ -4026,7 +4026,10 @@ rws_update (rws, regno, flags, pred) ...@@ -4026,7 +4026,10 @@ rws_update (rws, regno, flags, pred)
struct reg_flags flags; struct reg_flags flags;
int pred; int pred;
{ {
rws[regno].write_count += pred ? 1 : 2; if (pred)
rws[regno].write_count++;
else
rws[regno].write_count = 2;
rws[regno].written_by_fp |= flags.is_fp; rws[regno].written_by_fp |= flags.is_fp;
/* ??? Not tracking and/or across differing predicates. */ /* ??? Not tracking and/or across differing predicates. */
rws[regno].written_by_and = flags.is_and; rws[regno].written_by_and = flags.is_and;
......
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