On Tue, 14 Sep 2010 03:55:06 +0200, Luca Barbieri <[email protected]> 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.
pgpk173lctToY.pgp
Description: PGP signature
_______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
