[llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 7 14:25:31 PST 2025


================
@@ -5554,6 +5575,15 @@ struct AAAlignCallSiteReturned final
               std::min(this->getAssumedAlign(), Alignment).value());
         break;
       }
+      case Intrinsic::amdgcn_make_buffer_rsrc: {
+        const auto *AlignAA =
+            A.getAAFor<AAAlign>(*this, IRPosition::value(*(II->getOperand(0))),
+                                DepClassTy::REQUIRED);
+        if (AlignAA && AlignAA->isValidState())
----------------
arsenm wrote:

Does TargetTransformInfo have some kind of alignment propagation already? I thought it did 

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


More information about the llvm-commits mailing list