public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/100264] New: REE does not work on PARALLEL expressions with a single register SET child
@ 2021-04-26 11:29 christophm30 at gmail dot com
  2021-04-26 11:45 ` [Bug rtl-optimization/100264] " christophm30 at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: christophm30 at gmail dot com @ 2021-04-26 11:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100264

            Bug ID: 100264
           Summary: REE does not work on PARALLEL expressions with a
                    single register SET child
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christophm30 at gmail dot com
  Target Milestone: ---

REE iterates over all SET expressions and tries to eliminate redundant
zero-extensions. In case of a PARALLEL expression, there is a check in place to
ensure that "only one child of a PARALLEL expression is a SET".

Let's imagine a PARALLEL expression with two register SETs.
An example would be store-conditional, which sets a memory location (store
target) as well as a register (return success value).
The current implementation is not able to optimize a zero-extension of the
return value of store-conditional.

This can be solved, by moving the check for register targets (i.e. REG_P ())
into the function get_sub_rtx () and change the restriction of REE to "only one
child of a PARALLEL expression is a SET register".

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-17  6:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 11:29 [Bug rtl-optimization/100264] New: REE does not work on PARALLEL expressions with a single register SET child christophm30 at gmail dot com
2021-04-26 11:45 ` [Bug rtl-optimization/100264] " christophm30 at gmail dot com
2021-06-02 21:02 ` cvs-commit at gcc dot gnu.org
2021-06-02 21:04 ` wilson at gcc dot gnu.org
2021-09-17  6:44 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).