reload: Handle generating reloads that also clobbers flags
commit7eefdc9c77892b679d183c1154ebb567251f0964
authorHans-Peter Nilsson <hp@axis.com>
Mon, 13 Feb 2023 22:10:24 +0000 (13 23:10 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 29 Apr 2023 22:19:01 +0000 (30 00:19 +0200)
tree6c90dc131bdba095af4041c5970e6142c33d38a5
parente2b204c31ba2b77dfe4a062b194129b7c97c81ad
reload: Handle generating reloads that also clobbers flags

* reload1.cc (emit_insn_if_valid_for_reload_1): Rename from
emit_insn_if_valid_for_reload.
(emit_insn_if_valid_for_reload): Call new helper, and if a SET fails
to be recognized, also try emitting a parallel that clobbers
TARGET_FLAGS_REGNUM, as applicable.
gcc/reload1.cc