public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kyrill Tkachov <kyrylo.tkachov@arm.com>
To: Christophe Lyon <christophe.lyon@linaro.org>,
	 GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH][auto-inc-dec.c] Account for cost of move operation in FORM_PRE_ADD and FORM_POST_ADD cases
Date: Thu, 29 Oct 2015 15:54:00 -0000	[thread overview]
Message-ID: <563240EE.3000503@arm.com> (raw)
In-Reply-To: <563109A1.5080105@arm.com>


On 28/10/15 17:45, Kyrill Tkachov wrote:
>
> On 28/10/15 17:23, Christophe Lyon wrote:
>> Hi Kyrill,
>
> Hi Christophe,
>
>>
>> On 26 October 2015 at 12:52, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote:
>>> On 26/10/15 11:28, Bernd Schmidt wrote:
>>>> On 10/26/2015 12:12 PM, Bernd Schmidt wrote:
>>>>>
>>>>> But isn't that balanced by the fact that it doesn't seem to take into
>>>>> account the gain of removing the inc_insn either? So I think this can't
>>>>> be right.
>>>>
>>>> Argh, misread the code. The patch is OK with the change I suggested.
>>>>
>>> Thanks!
>>> Here's what I committed with r229344.
>>>
>> Since this commit, I've noticed:
>>
>> FAIL: gcc.target/arm/lp1243022.c scan-rtl-dump subreg2 "REG_INC"
>> with --target arm-none-eabi --with-thumb --with-cpu=cortex-a9
>
> I think this is a testcase issue, I'll look into updating it separately.
>
>> as well as ICEs:
>>    gcc.target/aarch64/advsimd-intrinsics/vldX.c   -O2  (internal compiler error)
>>    gcc.target/aarch64/advsimd-intrinsics/vldX.c   -O2 -flto
>> -fno-use-linker-plugin -flto-partition=none  (internal compiler error)
>>
>> with --target arm-none-linux-gnueabihf --with-thumb
>> --with-cpu=cortex-a15 --with-fpu=neon-vfpv4
>> and --target arm-none-linux-gnueabihf --with-thumb
>> --with-cpu=cortex-a57 --with-fpu=crypto-neon-fp-armv8
>>
>> See for a more synthetic view:
>> http://people.linaro.org/~christophe.lyon/cross-validation/gcc/trunk/229344/report-build-info.html
>>
>> Can you have a look?
>
> The ICE backtrace is:
> 0x7a4494 change_address_1
>         $SRC/gcc/emit-rtl.c:2132
> 0x7a7453 adjust_address_1(rtx_def*, machine_mode, long, int, int, int, long)
>         $SRC/gcc/emit-rtl.c:2270
> 0xab792d gen_lowpart_general(machine_mode, rtx_def*)
>         $SRC/gcc/rtlhooks.c:90
> 0xfd721d gen_split_47(rtx_insn*, rtx_def**)
>         $SRC/gcc/config/arm/arm.md:4336
> 0x12473f2 split_11
>         $SRC/gcc/config/arm/arm.md:4331
> 0x12473f2 split_insns(rtx_def*, rtx_insn*)
>         $SRC/gcc/config/arm/sync.md:361
> 0x7af30e try_split(rtx_def*, rtx_insn*, int)
>         $SRC/gcc/emit-rtl.c:3664
> 0xa53dc5 split_insn
>         $SRC/gcc/recog.c:2874
> 0xa5ccf5 split_all_insns()
>         $SRC/gcc/recog.c:2964
> 0xa5cde3 rest_of_handle_split_after_reload
>         $SRC/gcc/recog.c:3900
> 0xa5cde3 execute
>         $SRC/gcc/recog.c:3929
>
>
> Looks like a latent issue exposed by my patch.
> Could you please file a BZ entry if get the chance?
>

I've filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68149 for this one.

Kyrill

> Thanks,
> Kyrill
>
>
>> Thanks,
>>
>> Christophe.
>>
>>> Kyrill
>>>
>>> 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>>>
>>>      * auto-inc-dec.c (insert_move_insn_before): Delete.
>>>      (attempt_change): Remember to cost the simple move in the
>>>      FORM_PRE_ADD and FORM_POST_ADD cases.
>>>
>>>> Bernd
>>>>
>

  reply	other threads:[~2015-10-29 15:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-26 10:41 Kyrill Tkachov
2015-10-26 11:14 ` Bernd Schmidt
2015-10-26 11:28   ` Bernd Schmidt
2015-10-26 11:55     ` Kyrill Tkachov
2015-10-28 17:26       ` Christophe Lyon
2015-10-28 17:47         ` Kyrill Tkachov
2015-10-29 15:54           ` Kyrill Tkachov [this message]
2015-10-26 12:26   ` Oleg Endo
2015-10-26 16:12   ` Richard Sandiford
2015-10-26 21:48     ` Jeff Law

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=563240EE.3000503@arm.com \
    --to=kyrylo.tkachov@arm.com \
    --cc=christophe.lyon@linaro.org \
    --cc=gcc-patches@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: 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).