🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.help
Article #56

Re: [Altivec Newbie] optimizing current code?

#56
From: Ian Ollmann
Date: Thu, 18 Jan 2001 01:36
22 lines
1881 bytes
On Wed, 17 Jan 2001, Darrin Cardani wrote:

> It's not that bad, really. You can even do crazy things like:
>
> v1 = vec_add (vec_sub(v1,v2), vec_add (v3,v4));
>
> That's equivalent to
>
> v1 = (v1 - v2) + (v3 + v4);
>
> Personally, I try to keep things to one AltiVec instruction per line.
> It helps me optimize later, but there's no reason you have to do it
> that way.

CodeWarrior does a reasonable job at scheduling if you write in C, so I am
curious how keeping things one per line helps you optimize.

Ian

---------------------------------------------------
   Ian Ollmann, Ph.D.       iano@cco.caltech.edu
---------------------------------------------------
Technical Details
Message-ID: <Pine.SGI.4.30.0101171735050.41019-100000@helix2.caltech.edu>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsswitch.lcs.mit.edu!uchinews!nntp-server.caltech.edu!helix2.caltech.edu!iano
References: <943r3l$hn2$1@nnrp1.deja.com> <170120011731277716%dcardani@buena.spamfree.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 101ec9,a6671d8e4f3ed02f
X-Google-Attributes: gid101ec9,public
X-Google-Thread: 10bcce,a6671d8e4f3ed02f
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,a6671d8e4f3ed02f
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2001-01-17 17:30:57 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsswitch.lcs.mit.edu!uchinews!nntp-server.caltech.edu!helix2.caltech.edu!iano
From: Ian Ollmann <iano@cco.caltech.edu>
Newsgroups: comp.sys.mac.programmer.help,comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: [Altivec Newbie] optimizing current code?
Date: Wed, 17 Jan 2001 17:36:26 -0800
Organization: California Institute of Technology, Pasadena
Lines: 23
Message-ID: <Pine.SGI.4.30.0101171735050.41019-100000@helix2.caltech.edu>
References: <943r3l$hn2$1@nnrp1.deja.com> <170120011731277716%dcardani@buena.spamfree.com>
NNTP-Posting-Host: helix2.caltech.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender:  <iano@helix2.caltech.edu>
In-Reply-To: <170120011731277716%dcardani@buena.spamfree.com>