[llvm] [AMDGPU] Make maximum hard clause size a subtarget feature (PR #81287)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 10:03:06 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d1fdb416299c0efa5979ed989f7c1f39973dcb73 049c3532f5bde852ac3f2a7f8c678643ef5f3455 -- llvm/lib/Target/AMDGPU/GCNSubtarget.h llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp b/llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
index 46dee9d6d0..01580fe345 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
@@ -177,7 +177,8 @@ public:
bool emitClause(const ClauseInfo &CI, const SIInstrInfo *SII) {
if (CI.First == CI.Last)
return false;
- assert(CI.Length <= ST->maxHardClauseLength() && "Hard clause is too long!");
+ assert(CI.Length <= ST->maxHardClauseLength() &&
+ "Hard clause is too long!");
auto &MBB = *CI.First->getParent();
auto ClauseMI =
``````````
</details>
https://github.com/llvm/llvm-project/pull/81287
More information about the llvm-commits
mailing list