[llvm] [DXIL][Analysis] Uniquify duplicate resources in DXILResourceAnalysis (PR #105602)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 18:07:06 PDT 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 f03b7830902225a8910d2972c39143355795efa9 a78456b8bce36978efeb23e2219ff8f6a1599d5f --extensions h,cpp -- llvm/include/llvm/Analysis/DXILResource.h llvm/lib/Analysis/DXILResource.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/DXILResource.cpp b/llvm/lib/Analysis/DXILResource.cpp
index 110a59331f..2f38fa93d9 100644
--- a/llvm/lib/Analysis/DXILResource.cpp
+++ b/llvm/lib/Analysis/DXILResource.cpp
@@ -732,7 +732,8 @@ DXILResourceMap::DXILResourceMap(
} else if (RI.isCBuffer() && FirstCBuffer == Size) {
FirstCBuffer = I;
NextID = 0;
- } if (RI.isSampler() && FirstSampler == Size) {
+ }
+ if (RI.isSampler() && FirstSampler == Size) {
FirstSampler = I;
NextID = 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/105602
More information about the llvm-commits
mailing list