[llvm] [TTI] Introduce getInstructionUniformity API for flexible uniformity analysis (PR #137639)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 04:57:17 PST 2025
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,h -- llvm/include/llvm/ADT/GenericUniformityImpl.h llvm/include/llvm/ADT/Uniformity.h llvm/include/llvm/Analysis/TargetTransformInfo.h llvm/include/llvm/Analysis/TargetTransformInfoImpl.h llvm/lib/Analysis/TargetTransformInfo.cpp llvm/lib/Analysis/UniformityAnalysis.cpp llvm/lib/CodeGen/MachineUniformityAnalysis.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h --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/include/llvm/ADT/GenericUniformityImpl.h b/llvm/include/llvm/ADT/GenericUniformityImpl.h
index 12192d02a..df73a47ee 100644
--- a/llvm/include/llvm/ADT/GenericUniformityImpl.h
+++ b/llvm/include/llvm/ADT/GenericUniformityImpl.h
@@ -428,8 +428,7 @@ protected:
// Map containing tracked instruction that can be proven uniform based on its
// operand Uniformity.
- DenseMap<const InstructionT *, InstructionUniformity>
- UniformInstruction;
+ DenseMap<const InstructionT *, InstructionUniformity> UniformInstruction;
/// \brief Mark \p Term as divergent and push all Instructions that become
/// divergent as a result on the worklist.
``````````
</details>
https://github.com/llvm/llvm-project/pull/137639
More information about the llvm-commits
mailing list