public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns
@ 2024-06-17 12:48 gjl at gcc dot gnu.org
  2024-06-17 12:51 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-06-17 12:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115523
           Summary: [avr] Remove SFmode insns
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

Created attachment 58448
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58448&action=edit
sfmode.c: C test case

There is currently the problem that subreg lowering is producing code that
later passes cannot really digest:

With avr-gcc v14.1:
$ avr-gcc sfmode.c -Os -c -mmcu=atmega8 -dp -save-temps -dumpbase ""   &&
avr-size sfmode.o
   text    data     bss     dec     hex filename
    160       0       0     160      a0 sfmode.o

whereas with v8:
   text    data     bss     dec     hex filename
     40       0       0      40      28 sfmode.o

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

* [Bug rtl-optimization/115523] [avr] Remove SFmode insns
  2024-06-17 12:48 [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns gjl at gcc dot gnu.org
@ 2024-06-17 12:51 ` gjl at gcc dot gnu.org
  2024-06-17 16:02 ` [Bug target/115523] " avr at gjlay dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-06-17 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
That bloat can be worked around by taking away the SFmode insns in avr.md.

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

* [Bug target/115523] [avr] Remove SFmode insns
  2024-06-17 12:48 [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns gjl at gcc dot gnu.org
  2024-06-17 12:51 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
@ 2024-06-17 16:02 ` avr at gjlay dot de
  2024-06-17 16:41 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: avr at gjlay dot de @ 2024-06-17 16:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Georg-Johann Lay <avr at gjlay dot de> ---
Am 17.06.24 um 17:06 schrieb pinskia at gcc dot gnu.org:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115523
> 
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |pinskia at gcc dot gnu.org
>            Component|rtl-optimization            |target
> 

This is an issue in the RTL passes, subreg-lowering vs. reg alloc.

It's just the case that the backend can (partially) hack around it.

Johann

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

* [Bug rtl-optimization/115523] [avr] Remove SFmode insns
  2024-06-17 12:48 [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns gjl at gcc dot gnu.org
  2024-06-17 12:51 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
  2024-06-17 16:02 ` [Bug target/115523] " avr at gjlay dot de
@ 2024-06-17 16:41 ` gjl at gcc dot gnu.org
  2024-06-17 16:51 ` pinskia at gcc dot gnu.org
  2024-06-17 17:00 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-06-17 16:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Andrew, in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114243#c2 you wrote
that the issue is going to be fixed for RISC-V. You have a PR for that, and
what's the state of it?

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

* [Bug rtl-optimization/115523] [avr] Remove SFmode insns
  2024-06-17 12:48 [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns gjl at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-06-17 16:41 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
@ 2024-06-17 16:51 ` pinskia at gcc dot gnu.org
  2024-06-17 17:00 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-17 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Georg-Johann Lay from comment #3)
> Andrew, in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114243#c2 you wrote
> that the issue is going to be fixed for RISC-V. You have a PR for that, and
> what's the state of it?

I am not 100% sure if this is the latest version of the patch set though, but
it was posted to the gcc-patches@ list in late May:
https://inbox.sourceware.org/gcc-patches/20240512225738.528917-2-juzhe.zhong@rivai.ai/

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

* [Bug rtl-optimization/115523] [avr] Remove SFmode insns
  2024-06-17 12:48 [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns gjl at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-06-17 16:51 ` pinskia at gcc dot gnu.org
@ 2024-06-17 17:00 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-17 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> I am not 100% sure if this is the latest version of the patch set though,
> but it was posted to the gcc-patches@ list in late May:
> https://inbox.sourceware.org/gcc-patches/20240512225738.528917-2-juzhe.
> zhong@rivai.ai/

Oh this is just the analysis part, the actually code changing part has not been
posted yet:
> And we will enable register coalsece with subreg liveness tracking in the followup patches.

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

end of thread, other threads:[~2024-06-17 17:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-17 12:48 [Bug rtl-optimization/115523] New: [avr] Remove SFmode insns gjl at gcc dot gnu.org
2024-06-17 12:51 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
2024-06-17 16:02 ` [Bug target/115523] " avr at gjlay dot de
2024-06-17 16:41 ` [Bug rtl-optimization/115523] " gjl at gcc dot gnu.org
2024-06-17 16:51 ` pinskia at gcc dot gnu.org
2024-06-17 17:00 ` 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).