[llvm] d25cb5a - [AMDGPU] Fix misleading SDWA verifier error. NFC.

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 11:32:28 PDT 2020


Author: Stanislav Mekhanoshin
Date: 2020-08-13T11:32:17-07:00
New Revision: d25cb5a8a23ec9192e32a318eb565e956b87f553

URL: https://github.com/llvm/llvm-project/commit/d25cb5a8a23ec9192e32a318eb565e956b87f553
DIFF: https://github.com/llvm/llvm-project/commit/d25cb5a8a23ec9192e32a318eb565e956b87f553.diff

LOG: [AMDGPU] Fix misleading SDWA verifier error. NFC.

The old error from GFX9 shall be updated to GFX9+.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index 0cd7acb7a789..1221b927b583 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -3695,7 +3695,8 @@ bool SIInstrInfo::verifyInstruction(const MachineInstr &MI,
       } else {
         // No immediates on GFX9
         if (!MO.isReg()) {
-          ErrInfo = "Only reg allowed as operands in SDWA instructions on GFX9";
+          ErrInfo =
+            "Only reg allowed as operands in SDWA instructions on GFX9+";
           return false;
         }
       }


        


More information about the llvm-commits mailing list