AMDGPU: Fix annotating loops with nested loop conditions
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 24 Mar 2017 20:57:10 +0000 (20:57 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 24 Mar 2017 20:57:10 +0000 (20:57 +0000)
commit0607a4427b11d5899bd18557b8c519e01b798e39
treea8ee80ffeb77e77ee5ac06aff51393905a075ee9
parent6a1209ee876cbd03c13b53a12478ef8fa63267a7
AMDGPU: Fix annotating loops with nested loop conditions

If the branch condition for a loop was a phi which itself
was fed from a phi from a loop, it isn't safe to try
to delete the phi until after the loop is handled.

llvm-svn: 298737
llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
llvm/test/CodeGen/AMDGPU/nested-loop-conditions.ll [new file with mode: 0644]