[llvm] [AMDGPU] Fix wrong uniformity for ballot NOT in UniformIntrinsicCombine (PR #220009)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 1 03:53:30 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPUUniformIntrinsicCombine.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUUniformIntrinsicCombine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUUniformIntrinsicCombine.cpp
index f135f4280..7cad6876b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUUniformIntrinsicCombine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUUniformIntrinsicCombine.cpp
@@ -38,7 +38,8 @@ using namespace llvm;
using namespace llvm::AMDGPU;
using namespace llvm::PatternMatch;
-/// \p UI never analyzed the values this pass creates and reports them divergent.
+/// \p UI never analyzed the values this pass creates and reports them
+/// divergent.
/// \p UniformUses lists the uses it proved uniform before rewriting them.
static bool isDivergentUse(const Use &U, const UniformityInfo &UI,
const SmallPtrSetImpl<const Use *> &UniformUses) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/220009
More information about the llvm-commits
mailing list