From: Richard Biener <richard.guenther@gmail.com>
To: Bin Cheng <bin.cheng@arm.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 1/3]Improve induction variable elimination
Date: Fri, 25 Jul 2014 12:27:00 -0000 [thread overview]
Message-ID: <CAFiYyc2T2dPF0PPsGLCFwfAW7MBhyHzxM36H2Tvdm=HWhjsi1g@mail.gmail.com> (raw)
In-Reply-To: <002a01cfa19e$8752d0d0$95f87270$@arm.com>
On Thu, Jul 17, 2014 at 11:07 AM, Bin Cheng <bin.cheng@arm.com> wrote:
> Hi,
> This is a series of three patches improving induction variable elimination.
> Currently GCC only eliminates iv for very specific case when the loop’s
> latch could run zero times, i.e., when may_be_zero field of loop niter
> information evaluates to true. In fact, it’s so specific that
> iv_elimination_compare_lt rarely succeeds during either GCC bootstrap or
> spec2000/spec2006 compilation. Though intrusive data shows these patches
> don’t help iv elimination that much for GCC bootstrap, they do capture
> 5%~15% more eliminations for compiling spec2000/2006. Detailed numbers are
> like:
> 2k/int 2k/fp 2k6/int 2k6/fp
> improve ~9.6% ~4.8% ~5.5% ~14.4%
>
> All patches pass bootstrap and regression test on x86_64/x86. I will
> bootstrap and test them on aarch64/arm platforms too.
>
> The first patch turns to tree operand_equal_p to check the number of
> iterations in iv_elimination_lt. Though I think this change isn’t necessary
> for current code, it’s needed if we further relax iv elimination for cases
> in which sign/unsigned conversion is involved.
As said elsewhere this bug should be fixed in tree-affine.c. Do you have
a testcase?
Thanks,
Richard.
> Thanks,
> bin
>
> 2014-07-17 Bin Cheng <bin.cheng@arm.com>
>
> * tree-ssa-loop-ivopts.c (iv_elimination_compare_lt): Check number
> of iteration using tree comparison.
next prev parent reply other threads:[~2014-07-25 12:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 9:08 Bin Cheng
2014-07-21 9:47 ` Fwd: " Bin.Cheng
2014-07-25 12:27 ` Richard Biener [this message]
2014-07-25 14:04 ` Bin.Cheng
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='CAFiYyc2T2dPF0PPsGLCFwfAW7MBhyHzxM36H2Tvdm=HWhjsi1g@mail.gmail.com' \
--to=richard.guenther@gmail.com \
--cc=bin.cheng@arm.com \
--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).