[Mesa-dev] [PATCH 3/4] i965/vs: Add simple dead code elimination.
Matt Turner
mattst88 at gmail.com
Thu Aug 18 12:02:49 PDT 2011
On Thu, Aug 18, 2011 at 2:38 PM, Eric Anholt <eric at anholt.net> wrote:
> + bool progress = true;
> + while (progress) {
> + progress = false;
> + progress = dead_code_eliminate() || progress;
|| progress is always false, though maybe it's just written like that
to match the style of the code.
I'd have just written this as
bool progress;
do {
progress = dead_code_eliminate();
} while (progress)
Matt
More information about the mesa-dev
mailing list