diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-09-23 21:20:34 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-09-24 18:20:21 +0200 |
commit | 28f527c9598339cf834a30b5ee1f14258b8ecbb2 (patch) | |
tree | 9d43a69d857eb3ea5f4bced292059b56986c984b /gcc/resource.c | |
parent | 1eb4d0d3bad1a7faa7f1734837562aea71575740 (diff) | |
parent | 2961ac45b9e19523958757e607d11c5893d6368b (diff) | |
download | gcc-28f527c9598339cf834a30b5ee1f14258b8ecbb2.zip gcc-28f527c9598339cf834a30b5ee1f14258b8ecbb2.tar.gz gcc-28f527c9598339cf834a30b5ee1f14258b8ecbb2.tar.bz2 |
Merge commit '2961ac45b9e19523958757e607d11c5893d6368b' [#247]
Diffstat (limited to 'gcc/resource.c')
-rw-r--r-- | gcc/resource.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index ba9e389..6185203 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -246,10 +246,6 @@ mark_referenced_resources (rtx x, struct resources *res, mark_referenced_resources (XEXP (x, 0), res, false); return; - case CC0: - res->cc = 1; - return; - case UNSPEC_VOLATILE: case TRAP_IF: case ASM_INPUT: @@ -607,13 +603,7 @@ find_dead_or_set_registers (rtx_insn *target, struct resources *res, set by the called routine. If IN_DEST is nonzero, it means we are inside a SET. Otherwise, - objects are being referenced instead of set. - - We never mark the insn as modifying the condition code unless it explicitly - SETs CC0 even though this is not totally correct. The reason for this is - that we require a SET of CC0 to immediately precede the reference to CC0. - So if some other insn sets CC0 as a side-effect, we know it cannot affect - our computation and thus may be placed in a delay slot. */ + objects are being referenced instead of set. */ void mark_set_resources (rtx x, struct resources *res, int in_dest, @@ -643,11 +633,6 @@ mark_set_resources (rtx x, struct resources *res, int in_dest, /* These don't set any resources. */ return; - case CC0: - if (in_dest) - res->cc = 1; - return; - case CALL_INSN: /* Called routine modifies the condition code, memory, any registers that aren't saved across calls, global registers and anything |