diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-01-05 17:43:27 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-01-05 17:43:27 +0000 |
commit | 407bcf8e28f417a2be94d9a0a38a0b7effcf2b94 (patch) | |
tree | 67038f49001b27befdd75d4b1e558d4d42c72fa9 /gcc/rtlanal.c | |
parent | 8ea81f56140ed8e09cdae93ce8d94a37e35cb586 (diff) | |
download | gcc-407bcf8e28f417a2be94d9a0a38a0b7effcf2b94.zip gcc-407bcf8e28f417a2be94d9a0a38a0b7effcf2b94.tar.gz gcc-407bcf8e28f417a2be94d9a0a38a0b7effcf2b94.tar.bz2 |
A couple of comment tweaks
Tweak a couple of comments added in the RTL-SSA series in response
to reviewer feedback.
gcc/
* mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
* rtlanal.c (simple_regno_set): Tweak description to clarify the
RMW condition.
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index d5b203e..d1240b0 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1458,11 +1458,13 @@ set_of (const_rtx pat, const_rtx insn) /* Check whether instruction pattern PAT contains a SET with the following properties: - - the SET is executed unconditionally; - - the destination of the SET is write-only rather than read-write; and + - the SET is executed unconditionally; and - either: - the destination of the SET is a REG that contains REGNO; or - - the destination of the SET is a SUBREG of such a REG. + - both: + - the destination of the SET is a SUBREG of such a REG; and + - writing to the subreg clobbers all of the SUBREG_REG + (in other words, read_modify_subreg_p is false). If PAT does have a SET like that, return the set, otherwise return null. |