[PATCH] D70871: AMDGPU/GlobalISel: Add AGPR bank and RegBankSelect mfma intrinsics

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 1 21:14:10 PST 2019


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUGenRegisterBankInfo.def:35
+  PM_AGPR32 = 29,
+  PM_AGPR64 = 30,
+  PM_AGPR128 = 31,
----------------
This is going to cause an annoying merge conflict with one of my patches. It would be nice to start finally having tablegen emit this


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp:148-149
+  // There is no direct copy between AGPRs.
+  if (isVectorRegisterBank(Src) &&
+      isVectorRegisterBank(Dst))
+    return 4;
----------------
Should just directly check if they are AGPR. This incorrectly covers VGPR copies?


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp:2130
+
+
 ///
----------------
Extra newline


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70871/new/

https://reviews.llvm.org/D70871





More information about the llvm-commits mailing list