[llvm] dd3f7a4 - [AMDGPU] Add a message to an assert

Sebastian Neubauer via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 04:03:31 PDT 2020


Author: Sebastian Neubauer
Date: 2020-10-16T13:03:20+02:00
New Revision: dd3f7a494af90c6136268fe17be857af591e2e53

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

LOG: [AMDGPU] Add a message to an assert

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index 7d1894bfccb8..6238fb9664c6 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -745,7 +745,7 @@ AMDGPUAsmPrinter::SIFunctionResourceInfo AMDGPUAsmPrinter::analyzeResourceUsage(
           llvm_unreachable("src_pops_exiting_wave_id should not be used");
 
         case AMDGPU::NoRegister:
-          assert(MI.isDebugInstr());
+          assert(MI.isDebugInstr() && "Instruction uses invalid noreg register");
           continue;
 
         case AMDGPU::VCC:


        


More information about the llvm-commits mailing list