OSDN Git Service

glsl: don't drop instructions from unreachable terminators continue branch
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 5 Sep 2017 05:59:07 +0000 (15:59 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 9 Oct 2017 23:05:37 +0000 (10:05 +1100)
commitab23b759f241a4e2247efa28bd28a5f20149c70b
tree949b51f7e99fb7eec1116ebea4eabc8746cbb283
parentc63ce5c95d03f300be4a0f4b09e1d0cbc90e554e
glsl: don't drop instructions from unreachable terminators continue branch

These instructions will be executed on every iteration of the loop
we cannot drop them.

V2:
- move removal of unreachable terminators from the terminator list
  to the same place they are removed from the IR as suggested by
  Nicolai.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/compiler/glsl/loop_analysis.h
src/compiler/glsl/loop_unroll.cpp