public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/100434] New: DSE fails to DSE aggregate LHS.
@ 2021-05-05 13:55 rguenth at gcc dot gnu.org
  2021-05-05 13:56 ` [Bug tree-optimization/100434] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-05 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100434
           Summary: DSE fails to DSE aggregate LHS.
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

struct X { int x; };
extern struct X foo (void);
struct X x;
void bar()
{
  x = foo();
  x = (struct X){};
}

the store to x from the call to foo() is not DSEd.  It works for aggregate
copies
x = y; though.

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

end of thread, other threads:[~2021-05-10  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 13:55 [Bug tree-optimization/100434] New: DSE fails to DSE aggregate LHS rguenth at gcc dot gnu.org
2021-05-05 13:56 ` [Bug tree-optimization/100434] " rguenth at gcc dot gnu.org
2021-05-10  9:41 ` cvs-commit at gcc dot gnu.org
2021-05-10  9:45 ` rguenth 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).