[llvm] [AMDGPU][TTI] Add Target Hook for Instruction Uniformity (getInstructionUniformity) (PR #137639)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 23:51:55 PDT 2025


================
@@ -48,6 +75,11 @@ void llvm::GenericUniformityAnalysisImpl<SSAContext>::pushUsers(
     const Value *V) {
   for (const auto *User : V->users()) {
     if (const auto *UserInstr = dyn_cast<const Instruction>(User)) {
+      if (SpecialUniformIntrinsics.count(UserInstr) &&
+          isAnyOperandUniform(*UserInstr)) {
----------------
arsenm wrote:

This is too specific of a "specially uniform" check. I'd expect this operand validation to be an operation dependent property 

https://github.com/llvm/llvm-project/pull/137639


More information about the llvm-commits mailing list