[llvm] r270091 - AMDGPU: Also look for s_cbranch_vccz
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 11:20:26 PDT 2016
Author: arsenm
Date: Thu May 19 13:20:25 2016
New Revision: 270091
URL: http://llvm.org/viewvc/llvm-project?rev=270091&view=rev
Log:
AMDGPU: Also look for s_cbranch_vccz
Modified:
llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp?rev=270091&r1=270090&r2=270091&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp Thu May 19 13:20:25 2016
@@ -158,7 +158,8 @@ bool SILowerControlFlow::shouldSkip(Mach
// When a uniform loop is inside non-uniform control flow, the branch
// leaving the loop might be an S_CBRANCH_VCCNZ, which is never taken
// when EXEC = 0. We should skip the loop lest it becomes infinite.
- if (I->getOpcode() == AMDGPU::S_CBRANCH_VCCNZ)
+ if (I->getOpcode() == AMDGPU::S_CBRANCH_VCCNZ ||
+ I->getOpcode() == AMDGPU::S_CBRANCH_VCCZ)
return true;
if (++NumInstr >= SkipThreshold)
More information about the llvm-commits
mailing list