i965/fs: Remove broken optimization for live intervals in loops.
authorEric Anholt <eric@anholt.net>
Sun, 3 Apr 2011 04:11:32 +0000 (18:11 -1000)
committerEric Anholt <eric@anholt.net>
Fri, 8 Apr 2011 18:04:00 +0000 (08:04 -1000)
commit963431829055f63ec94d88c97a5d07d30e49833a
treedd62f541337631a0b9fcda6192ed3523d5949f1a
parenta0d154dc1385d92a31dca8e65e50d958bdf6d532
i965/fs: Remove broken optimization for live intervals in loops.

The theory here was to detect a temporary variable used within a loop,
and avoid considering it live across the entire loop.  However, it was
overeager and failed when the first definition of the variable
appeared within the loop but was only conditionally defined.

Fixes glsl-fs-loop-redundant-condition.
src/mesa/drivers/dri/i965/brw_fs.cpp