public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: shmeel gutl <shmeelgutl@shmuelhome.mine.nu>
To: gcc@gcc.gnu.org
Subject: Re: Dependency confusion in sched-deps
Date: Fri, 06 Dec 2013 08:44:00 -0000	[thread overview]
Message-ID: <52A18E5E.1030104@shmuelhome.mine.nu> (raw)
In-Reply-To: <456D5B9D-3994-49D0-822F-12A157B47281@kugelworks.com>

On 06-Dec-13 01:34 AM, Maxim Kuvyrkov wrote:
> On 6/12/2013, at 8:44 am, shmeel gutl <shmeelgutl@shmuelhome.mine.nu> wrote:
>
>> On 05-Dec-13 02:39 AM, Maxim Kuvyrkov wrote:
>>> Dependency type plays a role for estimating costs and latencies between instructions (which affects performance), but using wrong or imprecise dependency type does not affect correctness.
>> On multi-issue architectures it does make a difference. Anti dependence permits the two instructions to be issued during the same cycle whereas true dependency and output dependency would forbid this.
>>
>> Or am I misinterpreting your comment?
> On VLIW-flavoured machines without resource conflict checking -- "yes", it is critical not to use anti dependency where an output or true dependency exist.  This is the case though, only because these machines do not follow sequential semantics for instruction execution (i.e., effects from previous instructions are not necessarily observed by subsequent instructions on the same/close cycles.
>
> On machines with internal resource conflict checking having a wrong type on the dependency should not cause wrong behavior, but "only" suboptimal performance.
>
> Thank you,
>
> --
> Maxim Kuvyrkov
> www.kugelworks.com
>
Earlier in the thread you wrote
> Output dependency is the right type (write after write).  Anti dependency is write after read, and true dependency is read after write.
Should the code be changed to accommodate vliw machines.. It has been 
there since the module was originally checked into trunk.

  reply	other threads:[~2013-12-06  8:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-07 12:48 Paulo Matos
2013-12-05  0:39 ` Maxim Kuvyrkov
2013-12-05 15:25   ` Michael Matz
2013-12-05 23:08     ` Maxim Kuvyrkov
2013-12-05 19:44   ` shmeel gutl
2013-12-05 23:34     ` Maxim Kuvyrkov
2013-12-06  8:44       ` shmeel gutl [this message]
2013-12-10 21:55         ` Maxim Kuvyrkov

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=52A18E5E.1030104@shmuelhome.mine.nu \
    --to=shmeelgutl@shmuelhome.mine.nu \
    --cc=gcc@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).