This fixes cases like the new test @nonuniform. In that test, %cc itself
is a uniform value; however, when reading it after the end of the loop in
basic block %if, its value is effectively non-uniform.
This problem was encountered in
https://bugs.freedesktop.org/show_bug.cgi?id=103743; however, this change
in itself is not sufficient to fix that bug, as there is another issue
in the AMDGPU backend.
Change-Id: I32bbffece4a32f686fab54964dae1a5dd72949d4
Comment is not necessary. By definition:
instruction produces uniform result if and only if all it's operands are uniform and all the branches it control depend of are uniform.
This comment assume that the person who uses Divergence Analysis has no idea of what it is.