diff options
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/R600/R600EmitClauseMarkers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/R600/R600EmitClauseMarkers.cpp b/lib/Target/R600/R600EmitClauseMarkers.cpp index 06cf8ac..3fdc678 100644 --- a/lib/Target/R600/R600EmitClauseMarkers.cpp +++ b/lib/Target/R600/R600EmitClauseMarkers.cpp @@ -187,6 +187,8 @@ private: continue; if (!isALU(I)) break; + if (AluInstCount > TII->getMaxAlusPerClause()) + break; if (I->getOpcode() == AMDGPU::PRED_X) { if (TII->getFlagOp(I).getImm() & MO_FLAG_PUSH) PushBeforeModifier = true; @@ -201,8 +203,6 @@ private: !SubstituteKCacheBank(I, KCacheBanks)) break; AluInstCount += OccupiedDwords(I); - if (AluInstCount > TII->getMaxAlusPerClause()) - break; } unsigned Opcode = PushBeforeModifier ? AMDGPU::CF_ALU_PUSH_BEFORE : AMDGPU::CF_ALU; |