diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-09-13 10:37:49 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-09-13 10:37:49 -0700 |
commit | e252b51ccde010cbd2a146485d8045103cd99533 (patch) | |
tree | e060f101cdc32bf5e520de8e5275db9d4236b74c /gcc/resource.c | |
parent | f10c7c4596dda99d2ee872c995ae4aeda65adbdf (diff) | |
parent | 104c05c5284b7822d770ee51a7d91946c7e56d50 (diff) | |
download | gcc-e252b51ccde010cbd2a146485d8045103cd99533.zip gcc-e252b51ccde010cbd2a146485d8045103cd99533.tar.gz gcc-e252b51ccde010cbd2a146485d8045103cd99533.tar.bz2 |
Merge from trunk revision 104c05c5284b7822d770ee51a7d91946c7e56d50.
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 |