On Tuesday, February 17, 2015 04:17:48 PM Matt Turner wrote:
> On Tue, Feb 17, 2015 at 3:45 PM, Kenneth Graunke <[email protected]> 
> wrote:
> > On Wednesday, February 04, 2015 08:21:24 PM Matt Turner wrote:
[snip]
> >> +   /* Remove constants from the table that don't have enough uses to make 
> >> them
> >> +    * profitable to store in a register.
> >> +    */
> >> +   for (int i = 0; i < table.len;) {
> >> +      struct imm *imm = &table.imm[i];
> >> +
> >> +      if (imm->uses_by_coissue < 4) {
> >> +         table.imm[i] = table.imm[table.len - 1];
> >> +         table.len--;
> >> +         continue;
> >> +      }
> >> +      i++;
> >
> > Whatever reason i++ had for being here doesn't appear to exist anymore -
> > move it inside the for(...)?
> 
> I think it is right, actually.
> 
> If we find an immediate we don't want to promote, we overwrite it with
> the last element in the table and then continue without incrementing i
> so that we get the same i value again.

I missed that.  Nevermind then :)

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to