public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/102733] missing fs:0 store when followed by one to gs:0 Date: Wed, 13 Oct 2021 18:49:48 +0000 [thread overview] Message-ID: <bug-102733-4-C90S9MUQjj@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102733-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102733 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Component|target |rtl-optimization Last reconfirmed| |2021-10-13 Keywords| |wrong-code --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gimple level is good: MEM[(<address-space-1> int *)0B] = 1; MEM[(<address-space-2> int *)0B] = 2; Expansion seems to be correct (notice AS1 and AS2): (insn 5 4 6 (set (reg/f:DI 82) (const_int 0 [0])) "/app/example.cpp":17:7 -1 (nil)) (insn 6 5 0 (set (mem:SI (reg/f:DI 82) [1 MEM[(<address-space-1> int *)0B]+0 S4 A128 AS1]) (const_int 1 [0x1])) "/app/example.cpp":17:7 -1 (nil)) ;; MEM[(<address-space-2> int *)0B] = 2; (insn 7 6 8 (set (reg/f:DI 83) (const_int 0 [0])) "/app/example.cpp":20:7 -1 (nil)) (insn 8 7 0 (set (mem:SI (reg/f:DI 83) [1 MEM[(<address-space-2> int *)0B]+0 S4 A128 AS2]) (const_int 2 [0x2])) "/app/example.cpp":20:7 -1 (nil)) RTL level DSE removes the first store. I suspect dse.c does not check ADDR_SPACE_GENERIC_P.
next prev parent reply other threads:[~2021-10-13 18:49 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-13 16:48 [Bug target/102733] New: " msebor at gcc dot gnu.org 2021-10-13 18:49 ` pinskia at gcc dot gnu.org [this message] 2021-10-13 18:55 ` [Bug rtl-optimization/102733] " pinskia at gcc dot gnu.org 2021-10-13 23:05 ` msebor at gcc dot gnu.org 2021-10-13 23:14 ` pinskia at gcc dot gnu.org 2023-06-02 3:39 ` pinskia at gcc dot gnu.org 2023-06-02 3:54 ` pinskia at gcc dot gnu.org 2023-06-02 19:48 ` cvs-commit at gcc dot gnu.org 2023-06-02 19:49 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-102733-4-C90S9MUQjj@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).