[llvm] [AMDGPU] Select v_lshl_add_u32 instead of v_mul_lo_u32 by constant (PR #71035)
    Jay Foad via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Nov  3 04:24:45 PDT 2023
    
    
  
================
@@ -515,6 +515,16 @@ def VOP3_CVT_SR_F8_F32_Profile : VOP3_Profile<VOPProfile<[i32, f32, i32, f32]>,
   let HasExtVOP3DPP = 0;
 }
 
+def IsPow2_32: PatLeaf<(i32 imm), [{
----------------
jayfoad wrote:
Needs a better name, maybe `IsPow2Plus1`
https://github.com/llvm/llvm-project/pull/71035
    
    
More information about the llvm-commits
mailing list