[llvm] [SCCP] Remove masking operations (PR #142736)
    Nikita Popov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jun  4 00:48:19 PDT 2025
    
    
  
================
@@ -157,6 +162,15 @@ static bool refineInstruction(SCCPSolver &Solver,
                           GEPNoWrapFlags::noUnsignedWrap());
       Changed = true;
     }
+  } else if (match(&Inst, m_And(m_Value(X), m_LowBitMask(RHSC)))) {
----------------
nikic wrote:
Could try generalizing this away from LowBitMask in a followup. For CVP this reduces compile-time, but for IPSCCP it shouldn't matter.
https://github.com/llvm/llvm-project/pull/142736
    
    
More information about the llvm-commits
mailing list