public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/107774] New: rtl failed to simplify subreg:vec_select to just vec_select.
@ 2022-11-21  2:18 crazylht at gmail dot com
  0 siblings, 0 replies; only message in thread
From: crazylht at gmail dot com @ 2022-11-21  2:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107774
           Summary: rtl failed to simplify subreg:vec_select to just
                    vec_select.
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crazylht at gmail dot com
  Target Milestone: ---

When i'm looking at
https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606373.html, I notice
there's some misoptimization in rtl.

It failed to simplift (subreg:SF (vec_select:V2SF (reg:V4SF) (parallel
[(const_int 2) (const_int 3)]) 0) to just (vec_select:SF (reg:V4SF) (parallel
[(const_int 2)])

The optimization is exposed after adjustment of ix86_can_change_mode_class, w/o
that, i don't have a case to reproduce this issue. But I can think backends
canonicalizing vec_select to subreg may have such issue.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-21  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21  2:18 [Bug rtl-optimization/107774] New: rtl failed to simplify subreg:vec_select to just vec_select crazylht at gmail dot com

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).