From: Lehua Ding <lehua.ding@rivai.ai>
To: Dimitar Dimitrov <dimitar@dinux.eu>
Cc: gcc-patches@gcc.gnu.org, vmakarov@redhat.com,
richard.sandiford@arm.com, juzhe.zhong@rivai.ai
Subject: Re: [PATCH V3 0/7] ira/lra: Support subreg coalesce
Date: Wed, 15 Nov 2023 10:10:35 +0800 [thread overview]
Message-ID: <CBF492E4D09FBFBF+64342b1b-57cd-4382-b86e-7f0798c49d8d@rivai.ai> (raw)
In-Reply-To: <ZVJSSx/s26TzpmZZ@kendros>
On 2023/11/14 0:43, Dimitar Dimitrov wrote:
> On Sun, Nov 12, 2023 at 08:08:10PM +0800, Lehua Ding wrote:
>> V3 Changes:
>> 1. fix three ICE.
>> 2. rebase
>>
>> Hi,
>>
>> These patchs try to support subreg coalesce feature in
>> register allocation passes (ira and lra).
>>
>
> Hi Lehua,
>
> V3 indeed fixes the arm-none-eabi build. It's also confirmed by Linaro CI:
> https://patchwork.sourceware.org/project/gcc/patch/20231112120817.2635864-8-lehua.ding@rivai.ai/
>
> But avr and pru backends are still broken, albeit with different crash
> signatures. Both targets are peculiar because they have
> UNITS_PER_WORD=1. I'll try building some 16-bit target like msp430.
>
> AVR fails when building libgcc:
> /mnt/nvme/dinux/local-workspace/gcc/libgcc/config/avr/lib2funcs.c: In function '__roundlr':
> /mnt/nvme/dinux/local-workspace/gcc/libgcc/config/avr/lib2funcs.c:115:3: internal compiler error: in check_allocation, at ira.cc:2673
> 115 | }
> | ^
> /mnt/nvme/dinux/local-workspace/gcc/libgcc/config/avr/lib2funcs.c:106:3: note: in expansion of macro 'ROUND2'
> 106 | ROUND2 (FX)
> | ^~~~~~
> /mnt/nvme/dinux/local-workspace/gcc/libgcc/config/avr/lib2funcs.c:117:1: note: in expansion of macro 'ROUND1'
> 117 | ROUND1(L_LABEL)
> | ^~~~~~
> 0xc80b8d check_allocation
> /mnt/nvme/dinux/local-workspace/gcc/gcc/ira.cc:2673
> 0xc89451 ira
> /mnt/nvme/dinux/local-workspace/gcc/gcc/ira.cc:5873
> 0xc89451 execute
> /mnt/nvme/dinux/local-workspace/gcc/gcc/ira.cc:6104
>
> Script I'm using to build avr: https://github.com/dinuxbg/gnupru/blob/master/testing/manual-build-avr.sh
>
>
>
> PRU fails building newlib:
> /mnt/nvme/dinux/local-workspace/newlib/newlib/libc/stdlib/gdtoa-gdtoa.c:835:9: internal compiler error: in lra_create_live_ranges, at lra-lives.cc:1933
> 835 | }
> | ^
> 0x6b951c lra_create_live_ranges(bool, bool)
> /mnt/nvme/dinux/local-workspace/gcc/gcc/lra-lives.cc:1933
> 0xd9320c lra(_IO_FILE*)
> /mnt/nvme/dinux/local-workspace/gcc/gcc/lra.cc:2638
> 0xd3e519 do_reload
> /mnt/nvme/dinux/local-workspace/gcc/gcc/ira.cc:5960
> 0xd3e519 execute
> /mnt/nvme/dinux/local-workspace/gcc/gcc/ira.cc:6148
>
> Script I'm using to build pru: https://github.com/dinuxbg/gnupru/blob/master/testing/manual-build-pru.sh
These ICE will fixed in the V4 patchs and both targets build
successfully in my machine, thank you so much for the reported.
--
Best,
Lehua (RiVAI)
lehua.ding@rivai.ai
next prev parent reply other threads:[~2023-11-15 2:11 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-12 12:08 Lehua Ding
2023-11-12 12:08 ` [PATCH V3 1/7] df: Add DF_LIVE_SUBREG problem Lehua Ding
2023-11-13 22:38 ` Vladimir Makarov
2023-11-14 8:14 ` Richard Biener
2023-11-14 8:38 ` Lehua Ding
2023-11-14 9:03 ` Richard Biener
2023-11-14 14:52 ` Vladimir Makarov
2023-11-14 17:18 ` Vladimir Makarov
2023-11-14 18:29 ` Vladimir Makarov
2023-11-20 20:11 ` Richard Sandiford
2023-11-21 6:35 ` Lehua Ding
2023-11-12 12:08 ` [PATCH V3 2/7] ira: Switch to live_subreg data Lehua Ding
2023-11-14 20:26 ` Vladimir Makarov
2023-11-12 12:08 ` [PATCH V3 3/7] ira: Support subreg live range track Lehua Ding
2023-11-14 20:37 ` Vladimir Makarov
2023-11-12 12:08 ` [PATCH V3 4/7] ira: Support subreg copy Lehua Ding
2023-11-16 21:13 ` Vladimir Makarov
2023-11-17 2:06 ` Lehua Ding
2023-11-17 14:05 ` Vladimir Makarov
2023-11-18 8:00 ` Lehua Ding
2023-11-18 8:06 ` Sam James
2023-11-18 8:16 ` Lehua Ding
2023-11-18 8:24 ` Sam James
2023-11-18 8:27 ` Lehua Ding
2023-11-12 12:08 ` [PATCH V3 5/7] ira: Add all nregs >= 2 pseudos to tracke subreg list Lehua Ding
2023-11-16 21:14 ` Vladimir Makarov
2023-11-12 12:08 ` [PATCH V3 6/7] lra: Switch to live_subreg data flow Lehua Ding
2023-11-12 12:08 ` [PATCH V3 7/7] lra: Support subreg live range track and conflict detect Lehua Ding
2023-11-13 16:43 ` [PATCH V3 0/7] ira/lra: Support subreg coalesce Dimitar Dimitrov
2023-11-15 2:10 ` Lehua Ding [this message]
2023-11-13 19:37 ` Vladimir Makarov
2023-11-14 5:37 ` Lehua Ding
2023-11-14 23:33 ` Peter Bergner
2023-11-14 23:22 ` Peter Bergner
2023-11-15 3:12 ` Lehua Ding
2023-11-15 3:33 ` Peter Bergner
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=CBF492E4D09FBFBF+64342b1b-57cd-4382-b86e-7f0798c49d8d@rivai.ai \
--to=lehua.ding@rivai.ai \
--cc=dimitar@dinux.eu \
--cc=gcc-patches@gcc.gnu.org \
--cc=juzhe.zhong@rivai.ai \
--cc=richard.sandiford@arm.com \
--cc=vmakarov@redhat.com \
/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: link
Be 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).