On Tue, 14 Sep 2010 03:55:06 +0200, Luca Barbieri <l...@luca-barbieri.com> wrote: > ir_lower_jumps should already do the jump unification, and > could/should also remove the continue. > It's probably best to put all jump manipulations there to avoid > risking rerunning all passes a number of times linear in the program > size. > > Regarding ifs, it would be nice to also remove empty else branches, > and possibly convert if(c) {} else {code()} to if(!c) {code()} or
I remember writing the code to do that, but now I don't see it anywhere. It should happen in ir_if_simplification, I think. > perhaps do the reverse canonicalization instead. > And also things like "if(c) {if(c) {code()}}" to if(c) {code()} We don't have anything for handling constraints on values, and it would be nice if we did. > as well as "if(1) {code()}" to "code()", That's in ir_if_simplification.
pgpTmwRZ893Cx.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev