------- Comment #9 from mikael at gcc dot gnu dot org 2008-11-16 18:46 -------
(In reply to comment #8)
Are you sure this is needed ?
if (sempty)
{
- /* Switch immediately to the pad array. */
+ /* Pretend we are using the pad array the first time around, too. */
src = pptr;
- sptr = NULL;
+ sptr = pptr;
sdim = pdim;
for (dim = 0; dim < pdim; dim++)
sptr is only used later to switch from source to pad, which is not needed here
as we start with pad directly. No?
> Mikael, you were right about sstride0, but that wasn't the only problem :-)
While we are at it, we could calculate sstride0 outside the loop, that would be
5ns faster ;-).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135