[llvm] [AMDGPU][GlobalISel] Add RegBankLegalize rules for TFE buffer loads (PR #179529)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 4 07:22:41 PST 2026


================
@@ -1181,6 +1181,11 @@ LLT RegBankLegalizeHelper::getBTyFromID(RegBankLLTMappingApplyID ID, LLT Ty) {
         isAnyPtr(Ty, 128))
       return Ty;
     return LLT();
+  case VgprB160:
+  case UniInVgprB160:
+    if (Ty == LLT::scalar(160) || Ty == LLT::fixed_vector(5, 32))
+      return Ty;
+    return LLT();
----------------
petar-avramovic wrote:

type check is the point, but for B??? types, it should be fine to do just getSizeInBits

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


More information about the llvm-commits mailing list