diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-10-01 19:32:49 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-10-01 19:32:49 +0000 |
commit | c6c37d74a272f49f811fe747aa71f372600dfd9e (patch) | |
tree | 7ebd8109d6dd3c7068aae8e0c8fc36d2d027e079 /lib/Target/R600 | |
parent | 5b00e833fabbf5bdf2973c63c39d4a0d0143853a (diff) | |
download | external_llvm-c6c37d74a272f49f811fe747aa71f372600dfd9e.zip external_llvm-c6c37d74a272f49f811fe747aa71f372600dfd9e.tar.gz external_llvm-c6c37d74a272f49f811fe747aa71f372600dfd9e.tar.bz2 |
R600: Put PRED_X instruction in its own clause
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600')
-rw-r--r-- | lib/Target/R600/R600EmitClauseMarkers.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/R600/R600EmitClauseMarkers.cpp b/lib/Target/R600/R600EmitClauseMarkers.cpp index fac2b47..beacc0e 100644 --- a/lib/Target/R600/R600EmitClauseMarkers.cpp +++ b/lib/Target/R600/R600EmitClauseMarkers.cpp @@ -173,6 +173,14 @@ private: if (AluInstCount > TII->getMaxAlusPerClause()) break; if (I->getOpcode() == AMDGPU::PRED_X) { + // We put PRED_X in its own clause to ensure that ifcvt won't create + // clauses with more than 128 insts. + // IfCvt is indeed checking that "then" and "else" branches of an if + // statement have less than ~60 insts thus converted clauses can't be + // bigger than ~121 insts (predicate setter needs to be in the same + // clause as predicated alus). + if (AluInstCount > 0) + break; if (TII->getFlagOp(I).getImm() & MO_FLAG_PUSH) PushBeforeModifier = true; AluInstCount ++; |