public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Steven Bosscher <stevenb@suse.de>
To: Daniel Towner <daniel.towner@picochip.com>
Cc: Vladimir Makarov <vmakarov@redhat.com>,
	gcc@gcc.gnu.org, Nathan Sidwell <nathan@codesourcery.com>
Subject: Re: Incorrect DFA scheduling of output dependency.
Date: Tue, 07 Dec 2004 13:01:00 -0000	[thread overview]
Message-ID: <4376440.1102424496286.SLOX.WebMail.wwwrun@extimap.suse.de> (raw)
In-Reply-To: <41B58D07.7020306@picochip.com>

On Dec 07, 2004 11:59 AM, Daniel Towner <daniel.towner@picochip.com> wrote:

> Vlad, et al.,
> 
> >> I was wrong here. The instruction sequence is actually a data 
> >> (read-after-write) dependency, not an output dependency 
> >> (write-after-write). However, the relevent portion of the scheduler 
> >> dump is as follows:
> >>
> >> (note 82 147 64 2 [bb 2] NOTE_INSN_BASIC_BLOCK)
> >>
> >> (insn:TI 64 82 150 2 (set (reg/v:HI 4 R4 [orig:25 rdIndex ] [25])
> >>        (const_int 0 [0x0])) 15 {movhi} (nil)
> >>    (nil))
> >>
> >> (note 150 64 133 2 NOTE_INSN_LOOP_END)
> >>
> >> (insn 133 150 135 2 (set (reg:HI 5 R5 [33])
> >>        (ashift:HI (reg/v:HI 4 R4 [orig:25 rdIndex ] [25])
> >>            (const_int 2 [0x2]))) 48 {ashlhi3} (insn_list:REG_DEP_ANTI 
> >> 64 (nil))
> >>    (expr_list:REG_EQUAL (ashift:HI (reg/v:HI 4 R4 [orig:25 rdIndex ] 
> >> [25])
> >>            (const_int 2 [0x2]))
> >>        (nil)))
> >>
> >> Does this state that insn 133 is anti-dependent on insn 64?
> >
> I've discovered that the anti-dependency is inserted by sched_analyze. 
> It occurs because of the NOTE_INSN_LOOP_END between the two instructions 
> above. This note introduces a move barrier between the instructions, 
> which is intended to prevent the two instructions being reordered. 


Can someone explain please why we have loop notes in the middle of
a basic block?

Gr.
Steven


  reply	other threads:[~2004-12-07 13:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06 11:30 Daniel Towner
2004-12-06 12:30 ` Nathan Sidwell
2004-12-06 12:31 ` Steven Bosscher
2004-12-06 16:27   ` Daniel Towner
2004-12-06 17:12     ` Vladimir Makarov
2004-12-07 10:59       ` Daniel Towner
2004-12-07 13:01         ` Steven Bosscher [this message]
2004-12-07 13:15           ` Steven Bosscher
2004-12-07 13:26             ` Jeffrey A Law
2004-12-07 13:40               ` Daniel Berlin
2004-12-07 22:15         ` Vladimir N. Makarov
     [not found]           ` <41B6360E.6010806@redhat.com>
2004-12-08  9:53             ` Daniel Towner

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=4376440.1102424496286.SLOX.WebMail.wwwrun@extimap.suse.de \
    --to=stevenb@suse.de \
    --cc=daniel.towner@picochip.com \
    --cc=gcc@gcc.gnu.org \
    --cc=nathan@codesourcery.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).