R600/SI: Fix verifier errors from the SIAnnotateControlFlow pass
authorTom Stellard <thomas.stellard@amd.com>
Fri, 1 May 2015 03:44:08 +0000 (03:44 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 May 2015 03:44:08 +0000 (03:44 +0000)
commit89d0e99f863f906d64727f168686565248063a9a
tree7b430720cbebe6e3265aa5368d7b5045a84148ac
parentd57216e763cbbc10fe100a70545eeaa9529a1398
R600/SI: Fix verifier errors from the SIAnnotateControlFlow pass

This pass was generating 'Instruction does not dominate all uses!'
errors for programs which had loops with a condition variable that
depended on the result of a phi instruction from outside of the loop.

The pass was inserting new phi nodes outside of the loop which used values
defined inside the loop.

http://bugs.freedesktop.org/show_bug.cgi?id=90056

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIAnnotateControlFlow.cpp
test/CodeGen/R600/si-annotate-cf.ll