[llvm] [AMDGPU] Assert no bad shift operations will happen (PR #108416)
    Georgi Mirazchiyski via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Sep 12 09:50:50 PDT 2024
    
    
  
================
@@ -4204,6 +4204,8 @@ bool AMDGPULegalizerInfo::loadInputValue(Register DstReg, MachineIRBuilder &B,
     // TODO: Should we try to emit this once in the entry block?
     const LLT S32 = LLT::scalar(32);
     const unsigned Mask = Arg->getMask();
+    // None of the target SGPRs or VGPRs are expected to have a 'zero' mask.
+    assert(Mask && "Invalid mask.");
----------------
GeorgeWeb wrote:
Done @arsenm. Thanks for explaining as well!
https://github.com/llvm/llvm-project/pull/108416
    
    
More information about the llvm-commits
mailing list