[llvm] AMDGPU/GlobalISel: Uniformity info based regbankselect (PR #73684)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 01:15:55 PST 2023


================
@@ -3623,6 +3735,23 @@ AMDGPURegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
 
   SmallVector<const ValueMapping*, 8> OpdsMapping(MI.getNumOperands());
 
+  // Switch for uniformity info based regbank selection.
+  // Does not inspect register bank on incoming operands.
+  switch (MI.getOpcode()) {
+  case AMDGPU::G_FADD: {
----------------
Pierre-vh wrote:

Does this switch need to match what's in `AMDGPURegBankSelect` & `applyMappingImpl` ? If so, please add a comment to all the switches to note that they must be synced.

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


More information about the llvm-commits mailing list